Square up sidebar icons

This commit is contained in:
ernstmul
2025-05-09 11:16:49 +02:00
parent a71651bbbe
commit cbba2cd21e
2 changed files with 10 additions and 5 deletions
@@ -34,17 +34,18 @@
<nav style:--icon-fill="var(--fgcolor-neutral-tertiary)" class:isOpen>
<Layout.Stack direction="column" justifyContent="space-between" height="100%">
<Layout.Stack gap="xs">
<Layout.Stack gap="xs" inline>
{#each menuItems as menuItem}
{#if menuItem.type === 'item'}
<ActionMenu.Item.Anchor
style={`background-color: ${
style={`--space-5: 8px; background-color: ${
page.url.pathname.includes(menuItem.path)
? 'var(--overlay-neutral-hover)'
: 'auto'
}`}
href={`${base}/project-${project.$id}/${menuItem.path}`}
leadingIcon={menuItem.icon}
size="l"
on:click={() => {
if ($isSmallViewport) {
isOpen = false;
@@ -73,10 +74,14 @@
z-index: 10;
@media (min-width: 768px) {
width: 52px;
width: 48px;
}
}
:global(nav > div) {
width: 32px !important;
}
.isOpen {
transform: translateX(0);
}
+2 -2
View File
@@ -518,8 +518,8 @@
&.project-sidebar {
@media (min-width: 1024px) {
width: calc(100vw - 52px);
margin-left: 52px;
width: calc(100vw - 48px);
margin-left: 48px;
}
}
}