Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Inline SidebarInset base classes and remove dead sidebar logic

Julius Marminge47117a7d85b6
diff --git a/apps/web/src/components/ui/sidebar.logic.ts b/apps/web/src/components/ui/sidebar.logic.ts
deleted file mode 100644
index c9e4b4c1d..000000000
--- a/apps/web/src/components/ui/sidebar.logic.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const SIDEBAR_INSET_BASE_CLASSNAME =
- "relative flex min-w-0 w-full flex-1 flex-col bg-background";
diff --git a/apps/web/src/components/ui/sidebar.test.tsx b/apps/web/src/components/ui/sidebar.test.tsx
deleted file mode 100644
index 99bf2d017..000000000
--- a/apps/web/src/components/ui/sidebar.test.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { describe, expect, it } from "vitest";
-
-import { SIDEBAR_INSET_BASE_CLASSNAME } from "./sidebar.logic";
-
-describe("SidebarInset", () => {
- it("stays shrinkable inside flex layouts", () => {
- expect(SIDEBAR_INSET_BASE_CLASSNAME).toContain("min-w-0");
- });
-});
diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx
index ef79926ef..16b9ec4ed 100644
--- a/apps/web/src/components/ui/sidebar.tsx
+++ b/apps/web/src/components/ui/sidebar.tsx
@@ -18,7 +18,6 @@ import {
import { Skeleton } from "~/components/ui/skeleton";
import { Tooltip, TooltipPopup, TooltipTrigger } from "~/components/ui/tooltip";
import { useMediaQuery } from "~/hooks/useMediaQuery";
-import { SIDEBAR_INSET_BASE_CLASSNAME } from "./sidebar.logic";
const SIDEBAR_COOKIE_NAME = "sidebar_state";
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -596,7 +595,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
return (
<main
className={cn(
- SIDEBAR_INSET_BASE_CLASSNAME,
+ "relative flex min-w-0 w-full flex-1 flex-col bg-background",
"md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm/5",
className,
)}