fix(canvas): mobile toolbar uses icon grid, tap to open panel

- Mobile toolbar shows compact 48x48 icon grid instead of full-width rows
- Labels hidden on mobile, title shown in popout panel header
- Separators hidden on mobile to save space
- Tap icon to open bottom-sheet panel with title + sub-tools

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-09 20:25:14 -07:00
parent fb69b41da6
commit 0645628fb6
1 changed files with 28 additions and 37 deletions

View File

@ -1565,59 +1565,50 @@
display: flex; display: flex;
} }
/* On mobile, flatten groups */ /* On mobile, icon grid — tap to open panel */
#toolbar .toolbar-group { #toolbar .toolbar-group {
width: 100%; width: auto;
} }
#toolbar .toolbar-group-toggle { #toolbar .toolbar-group-toggle {
width: 100%; width: 48px;
max-width: none; height: 48px;
text-align: left; max-width: 48px;
padding: 14px 16px; padding: 0;
font-size: 16px; font-size: 20px;
min-height: 48px; overflow: hidden;
height: auto; justify-content: center;
overflow: visible;
justify-content: flex-start;
} }
/* Show group name on mobile */
/* Hide label on mobile — title shows in panel header */
#toolbar .toolbar-group-toggle .tg-label { #toolbar .toolbar-group-toggle .tg-label {
display: inline; display: none !important;
font-size: 15px;
}
#toolbar .toolbar-group-toggle {
max-width: none;
padding-left: 10px;
padding-right: 10px;
justify-content: flex-start;
} }
#toolbar .toolbar-dropdown { /* Don't expand on hover on mobile */
position: static; #toolbar .toolbar-group:hover > .toolbar-group-toggle,
box-shadow: none; #toolbar .toolbar-group.open > .toolbar-group-toggle {
padding: 4px 0 4px 12px; max-width: 48px;
min-width: 0; padding: 0;
justify-content: center;
} }
#toolbar .toolbar-group:hover > .toolbar-group-toggle .tg-label,
#toolbar .toolbar-dropdown button { #toolbar .toolbar-group.open > .toolbar-group-toggle .tg-label {
padding: 14px 16px; display: none !important;
font-size: 16px;
min-height: 48px;
} }
#toolbar > button { #toolbar > button {
width: 100%; width: 48px;
text-align: left; height: 48px;
padding: 14px 16px; padding: 0;
font-size: 20px;
min-height: 48px; min-height: 48px;
font-size: 16px; text-align: center;
justify-content: center;
} }
#toolbar .toolbar-sep { #toolbar .toolbar-sep {
width: 100%; display: none;
height: 1px;
margin: 4px 0;
} }
/* Hide collapse on mobile */ /* Hide collapse on mobile */