fix(ui): prevent nav rail from collapsing to zero width
CI / test (pull_request) Canceled after 0s

- Lower _NAV_MIN_WIDTH to 54px (collapsed icon-only width) so the
  splitter never allows a state where the toggle button disappears
- Auto-snap to collapsed mode when user drags below threshold instead
  of leaving the rail stuck at an unusable width

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
thanhnv
2026-09-08 23:10:29 +09:00
co-authored by Claude Opus 5
parent 4163437e4f
commit 285ba3ae94
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ _NAV_EXPANDED_WIDTH = 150
_NAV_COLLAPSED_WIDTH = 54
_NAV_ROW_INSET = 8
_NAV_ROW_GAP = 6
_NAV_MIN_WIDTH = 132
_NAV_MIN_WIDTH = 54
_NAV_MAX_SHARE = 0.22
_NAV_MAX_CEILING = 360