- + @@ -271,7 +271,7 @@ function SummaryCard({ return ( - + {["first", "second", "third", "fourth"].map((item) => ( - + ))} @@ -317,14 +317,14 @@ function HomeLoadingState() { {["mentions", "actions", "activity", "agents"].map((section) => ( {["a", "b", "c"].map((row) => ( - + ))} @@ -364,7 +364,7 @@ export function HomeView({ return ( - + Home feed unavailable @@ -386,11 +386,11 @@ export function HomeView({ return ( - + - + diff --git a/desktop/src/features/sidebar/ui/AppSidebar.tsx b/desktop/src/features/sidebar/ui/AppSidebar.tsx index f3b419e84..c49e9e517 100644 --- a/desktop/src/features/sidebar/ui/AppSidebar.tsx +++ b/desktop/src/features/sidebar/ui/AppSidebar.tsx @@ -1,3 +1,4 @@ +import { getCurrentWindow } from "@tauri-apps/api/window"; import { CircleDot, FileText, @@ -294,13 +295,24 @@ export function AppSidebar({ } } + function handleDragPointerDown(e: React.PointerEvent) { + if (e.button !== 0) return; + const target = e.target as HTMLElement; + if (target.closest('button, a, input, [role="button"]')) return; + e.preventDefault(); + getCurrentWindow().startDragging(); + } + return ( - + 🌱 @@ -324,9 +336,7 @@ export function AppSidebar({ Search messages - - Cmd K - + ⌘K diff --git a/desktop/src/shared/ui/sidebar.tsx b/desktop/src/shared/ui/sidebar.tsx index b2cd9a44e..b068c5fa3 100644 --- a/desktop/src/shared/ui/sidebar.tsx +++ b/desktop/src/shared/ui/sidebar.tsx @@ -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, React.ComponentProps >(({ className, onClick, ...props }, ref) => { - const { toggleSidebar } = useSidebar(); + const { toggleSidebar, open } = useSidebar(); return ( - + {open ? : } Toggle Sidebar );