Problem
When selecting an image from the thumbnail browser, the Viewer window changes size according to the selected image. This feels disruptive because simply clicking a thumbnail unexpectedly changes the whole application window layout.
This is related to #69, but this issue tracks the thumbnail-browser-specific flow.
Why this matters
- Thumbnail navigation should feel like browsing within a stable workspace.
- The user's focus is disrupted when the window jumps larger or smaller after each thumbnail click.
- It becomes harder to quickly inspect a folder containing mixed-resolution images.
- The thumbnail drawer itself may feel unstable if the main window keeps resizing around it.
Expected behavior
Clicking a thumbnail should load the selected image into the current Viewer viewport without changing the outer window size.
Recommended behavior:
- Preserve the current Viewer window size when a thumbnail is selected.
- Fit the selected image into the existing image area by adjusting zoom / pan.
- Keep the thumbnail drawer position and width stable.
- Only resize the window when the user explicitly chooses a fit-to-image / auto-resize command or setting.
Reproduction idea
- Open Viewer with the thumbnail browser enabled.
- Navigate to a folder with images of different resolutions.
- Click thumbnails for images with different sizes.
- Observe that the Viewer window grows or shrinks depending on the clicked image.
Acceptance criteria
- Selecting thumbnails no longer changes the outer Viewer window size.
- Image content is fit into the existing viewport instead.
- Thumbnail drawer layout remains stable.
- Any existing auto-resize behavior is either removed from thumbnail navigation or controlled by an explicit user setting.
Problem
When selecting an image from the thumbnail browser, the Viewer window changes size according to the selected image. This feels disruptive because simply clicking a thumbnail unexpectedly changes the whole application window layout.
This is related to #69, but this issue tracks the thumbnail-browser-specific flow.
Why this matters
Expected behavior
Clicking a thumbnail should load the selected image into the current Viewer viewport without changing the outer window size.
Recommended behavior:
Reproduction idea
Acceptance criteria