diff --git a/apps/frontend/src/components/__tests__/application-title-bar.test.tsx b/apps/frontend/src/components/__tests__/application-title-bar.test.tsx index 51594a82..662b908e 100644 --- a/apps/frontend/src/components/__tests__/application-title-bar.test.tsx +++ b/apps/frontend/src/components/__tests__/application-title-bar.test.tsx @@ -74,7 +74,7 @@ describe("ApplicationTitleBar", () => { ).toBeNull(); }); - it("keeps title bar free of chrome inset when sidebar is expanded", () => { + it("aligns expanded title-bar breadcrumbs with page content", () => { renderTitleBar("tauri", ); const banner = screen.getByRole("banner"); const leading = banner.querySelector('[data-slot="title-bar-leading"]'); @@ -82,7 +82,7 @@ describe("ApplicationTitleBar", () => { const routeAction = screen.getByRole("button", { name: "Route action" }); // Expanded desktop: fixed toggle sits over the sidebar, not the content title bar. - expect(leading?.style.paddingLeft).toBe("0.5rem"); + expect(leading?.style.paddingLeft).toBe("1rem"); expect(banner.querySelector("[data-tauri-drag-region]")).toBeNull(); expect(dragRegion).not.toBeNull(); if (!dragRegion) { diff --git a/apps/frontend/src/components/application-title-bar.tsx b/apps/frontend/src/components/application-title-bar.tsx index 88fa6219..93c4f305 100644 --- a/apps/frontend/src/components/application-title-bar.tsx +++ b/apps/frontend/src/components/application-title-bar.tsx @@ -114,7 +114,7 @@ export function ApplicationTitleBar({ buildTarget }: ApplicationTitleBarProps) { ? hasNativeMacWindowChrome ? NATIVE_CHROME_LEADING_INSET : WEB_CHROME_LEADING_INSET - : "0.5rem", + : "1rem", }; return ( @@ -145,7 +145,7 @@ export function ApplicationTitleBar({ buildTarget }: ApplicationTitleBarProps) {
{actions} -
{children}
+
{children}
); diff --git a/apps/frontend/src/routes/__root.tsx b/apps/frontend/src/routes/__root.tsx index 1cc4f54c..4e00f036 100644 --- a/apps/frontend/src/routes/__root.tsx +++ b/apps/frontend/src/routes/__root.tsx @@ -29,7 +29,6 @@ import { SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, - SidebarRail, SidebarTrigger, useSidebar, } from "@/components/ui/sidebar"; @@ -133,7 +132,7 @@ function SidebarBrandMark({ className }: { className?: string }) { )} > {/* Optical nudge: text-lg metrics sit slightly high in the 48px strip. */} - + {/* size-8 matches icon menu buttons in the rail. */} 財 @@ -281,7 +280,6 @@ function AppSidebar({ buildTarget: sidebarBuildTarget }: AppSidebarProps) { - ); } diff --git a/apps/frontend/src/styles.css b/apps/frontend/src/styles.css index ca1088bd..7e8e711f 100644 --- a/apps/frontend/src/styles.css +++ b/apps/frontend/src/styles.css @@ -12,6 +12,14 @@ border-radius: var(--radius-xl); } +[data-slot="scroll-area-scrollbar"][data-orientation="vertical"] { + width: 0.375rem; +} + +[data-slot="scroll-area-scrollbar"][data-orientation="horizontal"] { + height: 0.375rem; +} + @custom-variant dark (&:is(.dark *)); @theme inline { @@ -167,7 +175,13 @@ @apply border-border outline-ring/50; } body { - @apply bg-background text-foreground; + @apply select-none bg-background text-foreground; + } + input, + textarea, + [contenteditable="true"], + [contenteditable="plaintext-only"] { + user-select: text; } [data-sonner-toaster] { --width: 356px;