Repository navigation
feat(layout): split, close, move and resize individual views - #1054
Merged
Merged
Conversation
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PaulHax
force-pushed
the
flexible-view-splits
branch
8 times, most recently
from
November 28, 2026 23:47
9b217c2 to
5670f17
Compare
The View actions button beside each view's type selector splits it side by side or top and bottom, or closes it. A closed view's space goes to the other half of its split, so closing a view a split just added restores the previous layout. A new view starts with the original's image, slice, window/level, camera and en face settings. Split actions stay visible but disabled, with the reason, when the new panes would be too small or a view is maximized. Dragging the line between two views resizes them. Dividers that line up across rows or columns move together, a double click restores equal sizes, panes stop at the split guard's minimum size, and Escape or a canceled pointer reverts the drag. The layout tree names views by ID instead of slot index and carries optional sizes, so layoutSlots is gone and the state file version is 9.0.0. Older files migrate their slot layouts to view IDs and drop views the old layout hid. A saved layout is restored only when each pane names a saved view exactly once, and only the views it shows load their settings; otherwise the current views stay and show the restored data. A session opened together with a config keeps its own layout and views, whichever file loads first, and the config's named layouts still join the layout menu. Picking a named layout or a grid size starts over with new views of the current image, which keep each image's window/level, palette and visibility. Closing a view deletes it and its settings.
The split menu becomes View actions and gains Maximize view, or Restore view on the maximized view. Maximize is disabled when only one view is open, which is also the reason Close view now gives. A lone view never counts as maximized, so double-clicking it leaves Split and Move available.
A grip at the end of each view's controls, after the View actions button, drags the view onto another pane. Dropping near an edge docks it on that side, halving the target; dropping in the middle swaps the two views. The drop highlight shows the pane the view will take in the layout the drop commits. Escape cancels, as does removing the handle mid-drag.
A pane too narrow for the full controls row shows only the View actions and move handle, and the View actions menu lists the view types. Cine panes drop the FPS label instead. Every view's controls now fit inside the minimum pane width. Picking the current type from the menu keeps the view and its settings.
PaulHax
force-pushed
the
flexible-view-splits
branch
from
November 29, 2026 00:36
5670f17 to
7748924
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets users build their own view layouts instead of choosing only from the fixed named layouts.
What users can do
Menu actions stay visible but disabled, with a tooltip, when they cannot apply: a split when the view is too small or maximized, and Maximize or Close when only one view is open.
Behavior changes
layoutSlotsis gone.