Commit 6d77a77
feat(hub,hub-ui): collapsible edge-mode toolbar with drag-to-snap positioning
Ports vitejs/devtools#523 to the hub-ui edge-docked shell:
- Adds an opt-in "Auto-collapse edge toolbar" setting (Settings →
Appearance): when idle and closed, the edge-docked toolbar shrinks to
a small corner pill instead of permanently spanning the full edge,
mirroring Dock.vue's own minimize animation. Hovering the pill brings
it back. The pill anchors at the corner nearest the toolbar's entries,
away from the "Edge position"/"Float mode" buttons.
- The "Edge position" button now also acts as a drag handle, letting the
whole edge-docked panel be dragged and snapped among the four viewport
edges without transitioning through float mode mid-drag.
- Adds `autoCollapseEdgeToolbar` to the hub's `DevframeDocksUserSettings`
(@devframes/hub/types), since the toggle isn't specific to any single
viewer.
Closes #209.
Co-authored-by: dvcolomban <dinh-van.colomban@contentsquare.com>1 parent e3c6fe7 commit 6d77a77
8 files changed
Lines changed: 358 additions & 74 deletions
File tree
- packages
- hub-ui/src/client
- .generated
- components
- dock
- views-builtin
- hub/src/types
- tests/__snapshots__/tsnapi/@devframes/hub
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
| |||
0 commit comments