cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user