From 78456a4b1dc053eb89d731c42e30840aa300b83f Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 1 Jun 2026 15:57:01 -0700 Subject: [PATCH] cleanup --- js/desktop/src/features/attachments/attachment-lightbox.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/desktop/src/features/attachments/attachment-lightbox.tsx b/js/desktop/src/features/attachments/attachment-lightbox.tsx index c851c90..85a57bc 100644 --- a/js/desktop/src/features/attachments/attachment-lightbox.tsx +++ b/js/desktop/src/features/attachments/attachment-lightbox.tsx @@ -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 && ( - {position} / {items.length} + {positionIndicator} / {items.length} )}