cleanup
This commit is contained in:
@@ -63,8 +63,7 @@ export function AttachmentLightbox({
|
|||||||
: null;
|
: null;
|
||||||
const isOpen = current !== null;
|
const isOpen = current !== null;
|
||||||
const hasMultiple = items.length > 1;
|
const hasMultiple = items.length > 1;
|
||||||
// 1-based position for the "x / N" counter; null when nothing is open.
|
const positionIndicator = openIndex !== null ? openIndex + 1 : null;
|
||||||
const position = openIndex !== null ? openIndex + 1 : null;
|
|
||||||
|
|
||||||
// Remote items resolve through the signed-URL cache; disabled when not remote.
|
// Remote items resolve through the signed-URL cache; disabled when not remote.
|
||||||
const remoteObjectId =
|
const remoteObjectId =
|
||||||
@@ -193,7 +192,7 @@ export function AttachmentLightbox({
|
|||||||
)}
|
)}
|
||||||
{hasMultiple && (
|
{hasMultiple && (
|
||||||
<span className="border-l border-white/10 pl-2 text-xs text-white/40">
|
<span className="border-l border-white/10 pl-2 text-xs text-white/40">
|
||||||
{position} / {items.length}
|
{positionIndicator} / {items.length}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user