stretch header buttons to fill height, add gap between accessories
This commit is contained in:
parent
f5f7743055
commit
9b59a22a43
2 changed files with 19 additions and 2 deletions
|
|
@ -113,7 +113,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if pane.overflowMenu && pane.overflowMenu.length > 0}
|
{#if pane.overflowMenu && pane.overflowMenu.length > 0}
|
||||||
<DropdownMenu.Root>
|
<DropdownMenu.Root>
|
||||||
<DropdownMenu.Trigger>
|
<DropdownMenu.Trigger class="overflow-trigger">
|
||||||
{#snippet child({ props })}
|
{#snippet child({ props })}
|
||||||
<Button
|
<Button
|
||||||
{...props}
|
{...props}
|
||||||
|
|
@ -287,6 +287,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Overflow trigger - reset any default styles from bits-ui
|
||||||
|
:global(.overflow-trigger) {
|
||||||
|
all: unset;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
// Overflow menu styles
|
// Overflow menu styles
|
||||||
:global(.overflow-menu) {
|
:global(.overflow-menu) {
|
||||||
background: var(--menu-bg, white);
|
background: var(--menu-bg, white);
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: $unit-2x;
|
padding: $unit;
|
||||||
border-bottom: 1px solid var(--border-primary);
|
border-bottom: 1px solid var(--border-primary);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
background: var(--bg-primary);
|
background: var(--bg-primary);
|
||||||
|
|
@ -55,6 +55,16 @@
|
||||||
.header-right {
|
.header-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
// Ensure all buttons in header have consistent height
|
||||||
|
:global([data-button-root]) {
|
||||||
|
height: calc($unit * 4) !important;
|
||||||
|
|
||||||
|
// Icon-only buttons should be square
|
||||||
|
&.iconOnly {
|
||||||
|
width: calc($unit * 4) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-left {
|
.header-left {
|
||||||
|
|
@ -63,6 +73,7 @@
|
||||||
|
|
||||||
.header-right {
|
.header-right {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
gap: $unit-half;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue