App menu: with no menu button in the titlebar, the tab strip reserves no room for it
With the logo as the menu's only titlebar trigger (`<AppMenu trigger={false}/>`), `--bt-tb-menu` still kept 38px free at the end of the titlebar-hosted tab strip. It is 0 when there is no `.bt-app-button`, so the right side is back to its layout before the menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1c7a842d09
commit
d902d3f65a
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
.bt-app-button:focus-visible { outline: 0; box-shadow: var(--bt-ring); }
|
.bt-app-button:focus-visible { outline: 0; box-shadow: var(--bt-ring); }
|
||||||
.bt-shell .bt-app-button svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
|
.bt-shell .bt-app-button svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
|
||||||
|
|
||||||
|
/* An app that shows no menu button (`<AppMenu trigger={false}/>`, the logo is the menu's home) reserves no room for it. */
|
||||||
|
html:not(:has(.bt-app-button)) { --bt-tb-menu: 0px; }
|
||||||
|
|
||||||
/* The logo at the start of the titlebar: the menu's second trigger (a 30px target around the 20px
|
/* The logo at the start of the titlebar: the menu's second trigger (a 30px target around the 20px
|
||||||
mark; with its margins it takes the 50px the tab strip leaves in --bt-tb-left). */
|
mark; with its margins it takes the 50px the tab strip leaves in --bt-tb-left). */
|
||||||
.bt-titlebar-logo {
|
.bt-titlebar-logo {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue