diff --git a/dicom-viewer/src/App.tsx b/dicom-viewer/src/App.tsx index 3cc717c..a1b73c6 100644 --- a/dicom-viewer/src/App.tsx +++ b/dicom-viewer/src/App.tsx @@ -3482,6 +3482,11 @@ function App({ container_id, imageStacks, autoCacheStack, annotationJson, viewer const count = imageIds.length; const invalid = !Array.isArray(imageIds) || count === 0; const isSelected = selectedStackIdx.includes(idx); + // Prefer the middle image for a representative thumbnail, fallback to first + const midIndex = Math.floor(imageIds.length / 2); + const chosenImage = imageIds[midIndex] || imageIds[0]; + const thumbnailUrl = chosenImage ? (chosenImage.startsWith('wadouri:') ? chosenImage.slice(7) : chosenImage) : null; + return (
-
-
{label}
-
{count} img{count === 1 ? '' : 's'}
+
+ {thumbnailUrl ? ( + {label} + ) : ( +
No Img
+ )} +
+
{label}
+
{count} img{count === 1 ? '' : 's'}
+
{stack.studyId || ''}
@@ -3520,26 +3532,7 @@ function App({ container_id, imageStacks, autoCacheStack, annotationJson, viewer
- {/* Settings button at top-left (shift when side menu open) to avoid overlapping right-side controls */} - + {/* duplicate Settings button removed; the Settings button is now placed inside the viewport area */} {/* Settings Modal (viewport-local, not fixed to page) */} {