The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): sidebar row trailing inset, so the working arc stops clipping the age
Brooklyn Nicholsonb6d21b37b65d
diff --git a/apps/desktop/src/app/chat/sidebar/chrome.tsx b/apps/desktop/src/app/chat/sidebar/chrome.tsxindex a08bfa608c0..ef83cc6d949 100644--- a/apps/desktop/src/app/chat/sidebar/chrome.tsx+++ b/apps/desktop/src/app/chat/sidebar/chrome.tsx@@ -23,9 +23,19 @@ export function SidebarSectionMeta({ children }: { children: React.ReactNode })// Height lives ONLY on SidebarRowShell (min-h-[1.625rem]). Inset children// stretch to fill the cell and center content internally — never items-center// on the shell grid, or short clusters (projects) float 1–2px off sessions.+//+// `rowPadX` is the BODY's padding: the lead's inset, plus the gap the label+// keeps from the actions column, both inside the row's click target.+// `rowPadTrail` is the row's own trailing inset and belongs to the SHELL — the+// only box containing both the actions column AND the card's in-body cluster,+// so one class insets every trailing thing a row can render. Owned anywhere+// else, the age / chips / kebab sit flush on the border box, which is exactly+// where a working row paints its arc (`.arc-row` has zero standoff) — the ring+// ran through the text.const rowMinH = 'min-h-[1.625rem]'-const rowPadX = 'pl-2 pr-1'+const rowPadX = 'pl-2 pr-2'+const rowPadTrail = 'pr-2'const rowGap = 'gap-1.5'const rowLead = 'grid size-3.5 shrink-0 place-items-center'const rowInset = cn(rowPadX, rowGap, 'flex h-full min-w-0 items-center self-stretch py-0.5')@@ -71,9 +81,11 @@ export function SidebarDateDivider({)}-/** Outer grid — sole owner of row height. The trailing `actions` slot is- * marked `data-row-actions` so a row-wide drag gesture can exclude it with- * one selector: it holds real controls, never grab surface. */+/** Outer grid — sole owner of row height and of the trailing inset. The+ * `actions` slot is marked `data-row-actions` so a row-wide drag gesture can+ * exclude it with one selector: it holds real controls, never grab surface.+ * It stretches so that exclusion covers the column, not just its tallest+ * control. */export function SidebarRowShell({actions,actionsClassName,@@ -82,10 +94,13 @@ export function SidebarRowShell({...props}: React.ComponentProps<'div'> & { actions?: React.ReactNode; actionsClassName?: string }) {return (- <div className={cn(rowMinH, 'grid grid-cols-[minmax(0,1fr)_auto] items-stretch rounded-md', className)} {...props}>+ <div+ className={cn(rowMinH, rowPadTrail, 'grid grid-cols-[minmax(0,1fr)_auto] items-stretch rounded-md', className)}+ {...props}+ >{children}{actions ? (- <div className={cn('flex shrink-0 items-center self-center', actionsClassName)} data-row-actions>+ <div className={cn('flex shrink-0 items-center self-stretch', actionsClassName)} data-row-actions>{actions}</div>) : null}diff --git a/apps/desktop/src/app/chat/sidebar/session-row.tsx b/apps/desktop/src/app/chat/sidebar/session-row.tsxindex 553061f882c..aa88248daaa 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.tsx@@ -405,9 +405,13 @@ function SidebarSessionRowImpl({<SidebarRowBody// Every trailing figure lives in the actions slot, which the row// measures — so the title needs a gap from it and nothing else. Hover- // changes what you can see in that slot, never how wide it is.+ // changes what you can see in that slot, never how wide it is. The+ // card has no such column to clear (its cluster is INSIDE the body,+ // ending at the shell's own trailing inset), and keeping the gap+ // would pull the header in past every line below it.className={cn(- 'z-0 pr-2',+ 'z-0',+ card && 'pr-0',branchStem && 'pl-3.5',// The card is a grid with ONE spacing knob: --card-gap. Every row// gap is gap-y-(--card-gap); the title/preview group opts out