From f4497ef59d4fbf48eda9c5003494ed91c54d01b9 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 22 Sep 2025 10:59:33 +0100 Subject: [PATCH] Remove right-side stack panel implementation and update comments for clarity --- dicom-viewer/src/App.tsx | 85 +--------------------------------------- 1 file changed, 1 insertion(+), 84 deletions(-) diff --git a/dicom-viewer/src/App.tsx b/dicom-viewer/src/App.tsx index 2e38491..894bd85 100644 --- a/dicom-viewer/src/App.tsx +++ b/dicom-viewer/src/App.tsx @@ -2992,90 +2992,7 @@ function App({ container_id, imageStacks, autoCacheStack, annotationJson, viewer {/* top stack bar removed; use right-side panel instead */} - {/* Right-side stack panel (pinnable, shows on hover when not pinned) */} -
- {/* Panel container: translateX to hide when not pinned and not hovered */} -
-
-
Stacks
-
- - -
-
- -
- {availableStacks.length === 0 ? ( -
No stacks available
- ) : ( -
- {availableStacks.map((stack, idx) => { - const imageIds = Array.isArray(stack.imageIds) ? stack.imageIds : []; - const label = stack.name || (stack.caseId ? `Case: ${stack.caseId}` : `Stack ${idx + 1}`); - const count = imageIds.length; - const invalid = !Array.isArray(imageIds) || count === 0; - const isSelected = selectedStackIdx.includes(idx); - return ( -
{ - if (invalid) return; - e.dataTransfer.setData('text/stack-idx', String(idx)); - e.dataTransfer.effectAllowed = 'copy'; - }} - onClick={() => { if (!invalid) handleLoadStack(0, idx); }} - style={{ - display: 'flex', - alignItems: 'center', - justifyContent: 'space-between', - padding: '8px 10px', - background: isSelected ? '#1976d2' : 'transparent', - color: isSelected ? '#fff' : '#ddd', - borderRadius: 6, - cursor: invalid ? 'not-allowed' : 'pointer', - }} - > -
-
{label}
-
{count} img{count === 1 ? '' : 's'}
-
-
{stack.studyId || ''}
-
- ); - })} -
- )} -
-
- -
+ {/* Right-side stack panel is implemented in the main content flex container below */} {/* Floating right-edge toggle — always visible so users can open the panel */} {! (stackPanelPinned || stackPanelOpen) && (