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 (