diff --git a/apps/desktop/src/app/chat/sidebar/chrome.tsx b/apps/desktop/src/app/chat/sidebar/chrome.tsx index 8e2da487829ac..091e9fb4e6e6e 100644 --- a/apps/desktop/src/app/chat/sidebar/chrome.tsx +++ b/apps/desktop/src/app/chat/sidebar/chrome.tsx @@ -65,7 +65,15 @@ export function SidebarRowShell({ return (
{children} - {actions ?
{actions}
: null} + {/* + actions wrapper is shrink-0 so the actions slot owns its width, but + the slot itself is allowed to drop to 0px when idle (the kebab track + animates `w-[1.375rem] -> w-0` on hover-out). Previously the inner + track was permanently `w-[1.375rem]`, which produced the standing + gutter reported in #75331 — fixed by the inner actions slot, not + here, so the chrome itself remains the single source of row geometry. + */} + {actions ?
{actions}
: null}
) } diff --git a/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx b/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx index 66303462994d5..b7b4fa0538b1a 100644 --- a/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx +++ b/apps/desktop/src/app/chat/sidebar/projects/overview-row.test.tsx @@ -1,4 +1,4 @@ -import { cleanup, render, screen } from '@testing-library/react' +import { cleanup, fireEvent, render, screen } from '@testing-library/react' import type { ReactNode } from 'react' import { afterEach, describe, expect, it, vi } from 'vitest' @@ -36,7 +36,9 @@ vi.mock('./model', () => ({ // right-click wrapper) is stubbed as a pass-through so the row still renders. vi.mock('./project-menu', () => ({ ProjectContextMenu: ({ children }: { children: ReactNode }) => children, - ProjectMenu: () => null + ProjectMenu: ({ onOpenChange }: { onOpenChange?: (open: boolean) => void }) => ( +