diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx index 2686fad..a8a0aa9 100644 --- a/src/components/CommandPalette.tsx +++ b/src/components/CommandPalette.tsx @@ -315,9 +315,9 @@ export function CommandPalette() { {/* Backdrop */}
{/* Body */} - {children} +
+ {children} +
- + , + document.body, ); } diff --git a/src/components/settings/SettingsModal.tsx b/src/components/settings/SettingsModal.tsx index 1ecf32f..c348bb0 100644 --- a/src/components/settings/SettingsModal.tsx +++ b/src/components/settings/SettingsModal.tsx @@ -110,9 +110,10 @@ export function SettingsModal({ open, onClose, initialSection }: SettingsModalPr localStorage.setItem(SETTINGS_RETURN_PATH_KEY, location.pathname); const el = document.querySelector('[data-slot="dialog-content"]') as HTMLDivElement | null; - const overlayEl = document.querySelector('[data-slot="dialog-overlay"]') as HTMLDivElement | null; if (!el) return; + const overlayEl = document.querySelector('[data-slot="dialog-overlay"]') as HTMLDivElement | null; + setIsExpanding(true); const duration = 350; @@ -135,6 +136,7 @@ export function SettingsModal({ open, onClose, initialSection }: SettingsModalPr ); } + const targetEl = el; function frame(now: number) { const elapsed = now - start; const progress = Math.min(elapsed / duration, 1); @@ -144,11 +146,11 @@ export function SettingsModal({ open, onClose, initialSection }: SettingsModalPr const h = startH + (endH - startH) * eased; const r = startR + (endR - startR) * eased; - el.style.setProperty("width", `${w}vw`, "important"); - el.style.setProperty("height", `${h}vh`, "important"); - el.style.setProperty("max-width", `${w}vw`, "important"); - el.style.setProperty("max-height", `${h}vh`, "important"); - el.style.setProperty("border-radius", `${r}px`, "important"); + targetEl.style.setProperty("width", `${w}vw`, "important"); + targetEl.style.setProperty("height", `${h}vh`, "important"); + targetEl.style.setProperty("max-width", `${w}vw`, "important"); + targetEl.style.setProperty("max-height", `${h}vh`, "important"); + targetEl.style.setProperty("border-radius", `${r}px`, "important"); if (progress < 1) { requestAnimationFrame(frame); diff --git a/src/components/shell/personal-sidebar.tsx b/src/components/shell/personal-sidebar.tsx index 3b73376..de78171 100644 --- a/src/components/shell/personal-sidebar.tsx +++ b/src/components/shell/personal-sidebar.tsx @@ -223,9 +223,9 @@ function AgentChatSidebar() { aria-current={active ? "page" : undefined} aria-label={conv.title || "Untitled chat"} className={cn( - "group relative flex w-full cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-2 text-left transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", + "group relative flex w-full cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-2 text-left transition-[background-color,color,box-shadow] duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", active - ? "bg-primary/[0.08] text-foreground shadow-[inset_0_0_0_1px_var(--color-primary)/15]" + ? "bg-primary/[0.08] text-foreground ring-1 ring-primary/15" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground hover:shadow-sm", )} onClick={() => navigate(`/me/chat/${conv.id}`)} @@ -262,7 +262,7 @@ function AgentChatSidebar() { @@ -321,9 +321,9 @@ function PersonalSidebar() { ) : ( <>
- +