This commit is contained in:
Arjun Patel
2026-06-01 15:57:01 -07:00
parent 8d898c5183
commit 78456a4b1d
@@ -63,8 +63,7 @@ export function AttachmentLightbox({
: null;
const isOpen = current !== null;
const hasMultiple = items.length > 1;
// 1-based position for the "x / N" counter; null when nothing is open.
const position = openIndex !== null ? openIndex + 1 : null;
const positionIndicator = openIndex !== null ? openIndex + 1 : null;
// Remote items resolve through the signed-URL cache; disabled when not remote.
const remoteObjectId =
@@ -193,7 +192,7 @@ export function AttachmentLightbox({
)}
{hasMultiple && (
<span className="border-l border-white/10 pl-2 text-xs text-white/40">
{position} / {items.length}
{positionIndicator} / {items.length}
</span>
)}
</div>