diff --git a/src/App.tsx b/src/App.tsx index e10c074..784fe14 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -54,7 +54,7 @@ function AppShell(props: AppShellProps) { return ( <>
diff --git a/src/components/rail/AppRail.tsx b/src/components/rail/AppRail.tsx index 8b182b5..97c9efa 100644 --- a/src/components/rail/AppRail.tsx +++ b/src/components/rail/AppRail.tsx @@ -229,16 +229,19 @@ function RailThemeMenu( aria-expanded={open()} aria-haspopup="menu" onClick={handleToggle} - class="relative flex h-11 shrink-0 items-center gap-2.5 rounded-lg border-0 bg-transparent text-on-surface-variant no-underline transition duration-150 ease-out hover:-translate-y-px hover:bg-surface-bright hover:text-on-surface" + class="relative flex h-11 shrink-0 items-center rounded-lg border-0 bg-transparent text-on-surface-variant no-underline transition-[width,padding,transform,background-color,color] duration-200 ease-out motion-reduce:transition-none hover:-translate-y-px hover:bg-surface-bright hover:text-on-surface" classList={{ - "w-[2.75rem] justify-center": compact(), - "w-full justify-start px-3": !compact(), + "w-[2.75rem] justify-center gap-0": compact(), + "w-full justify-start gap-2.5 px-3": !compact(), "bg-surface-container text-primary": open(), }}> - - Theme - + + Theme + @@ -295,7 +298,7 @@ export function AppRail() { return (