diff --git a/website/canvas.html b/website/canvas.html index 69e8be5..a82891f 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -241,6 +241,19 @@ color: white; } + /* Icon + label structure inside toggle */ + .tg-icon { + flex-shrink: 0; + font-size: 18px; + line-height: 1; + } + .tg-label { + display: none; + font-size: 12px; + font-weight: 600; + white-space: nowrap; + } + /* Icon-only toolbar: show only emoji, fluid expand on hover/open */ .toolbar-group-toggle { max-width: 42px; @@ -251,15 +264,22 @@ padding-right: 0; position: relative; transition: max-width 0.25s ease, padding 0.2s ease; + gap: 6px; } /* Fluid expand: show title text on hover or when group is open */ .toolbar-group:hover > .toolbar-group-toggle, .toolbar-group.open > .toolbar-group-toggle { max-width: 160px; - padding-left: 10px; + padding-left: 8px; padding-right: 10px; text-align: left; + justify-content: flex-start; + } + + .toolbar-group:hover > .toolbar-group-toggle .tg-label, + .toolbar-group.open > .toolbar-group-toggle .tg-label { + display: inline; } /* Collapse/expand toggle — at top of toolbar */ @@ -1561,12 +1581,17 @@ overflow: visible; justify-content: flex-start; } - /* Show group name on mobile via title attr */ - #toolbar .toolbar-group-toggle::after { - content: attr(title); - margin-left: 8px; + /* Show group name on mobile */ + #toolbar .toolbar-group-toggle .tg-label { + display: inline; font-size: 15px; } + #toolbar .toolbar-group-toggle { + max-width: none; + padding-left: 10px; + padding-right: 10px; + justify-content: flex-start; + } #toolbar .toolbar-dropdown { position: static; @@ -1871,7 +1896,7 @@