Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
app: prevent Apps title bar overlap (#17925)
Parth Sareenfb3076099687
diff --git a/app/ui/app/src/components/layout/layout.test.tsx b/app/ui/app/src/components/layout/layout.test.tsxnew file mode 100644index 000000000..f4f7695b6--- /dev/null+++ b/app/ui/app/src/components/layout/layout.test.tsx@@ -0,0 +1,23 @@+import { renderToStaticMarkup } from "react-dom/server";+import { afterEach, describe, expect, it, vi } from "vitest";+import { SidebarLayout } from "./layout";++describe("SidebarLayout", () => {+ afterEach(() => {+ vi.unstubAllGlobals();+ });++ it("keeps the macOS title offset in step with the sidebar transition", () => {+ vi.stubGlobal("window", { OLLAMA_PLATFORM: "darwin" });++ const html = renderToStaticMarkup(+ <SidebarLayout title="Connect your apps" sidebar={<nav />}>+ <div />+ </SidebarLayout>,+ );++ expect(html).toContain("pl-36");+ expect(html).toContain("transition-[padding-left]");+ expect(html).toContain("duration-300");+ });+});diff --git a/app/ui/app/src/components/layout/layout.tsx b/app/ui/app/src/components/layout/layout.tsxindex 576a00e53..4fa0c7e78 100644--- a/app/ui/app/src/components/layout/layout.tsx+++ b/app/ui/app/src/components/layout/layout.tsx@@ -79,7 +79,7 @@ export function SidebarLayout({>{title && (<h1- className={`${sidebarOpen ? "pl-6" : isWindows ? "pl-16" : "pl-36"} font-rounded text-md font-medium dark:text-white`}+ className={`${sidebarOpen ? "pl-6" : isWindows ? "pl-16" : "pl-36"} transition-[padding-left] duration-300 font-rounded text-md font-medium dark:text-white`}>{title}</h1>