Remove OS titlebar and add custom window chrome (#29)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Wes
2026-03-11 10:01:37 -07:00
committed by GitHub
parent 4ecb5d3be2
commit 57cd81fd8b
9 changed files with 82 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { PanelLeft } from "lucide-react";
import { PanelLeftClose, PanelLeftOpen } from "lucide-react";
import { cn } from "@/shared/lib/cn";
import { useIsMobile } from "@/shared/hooks/use-mobile";
@@ -271,7 +271,7 @@ const SidebarTrigger = React.forwardRef<
React.ElementRef<typeof Button>,
React.ComponentProps<typeof Button>
>(({ className, onClick, ...props }, ref) => {
const { toggleSidebar } = useSidebar();
const { toggleSidebar, open } = useSidebar();
return (
<Button
@@ -286,7 +286,7 @@ const SidebarTrigger = React.forwardRef<
}}
{...props}
>
<PanelLeft />
{open ? <PanelLeftClose /> : <PanelLeftOpen />}
<span className="sr-only">Toggle Sidebar</span>
</Button>
);