diff --git a/apps/web/src/components/SidebarV2.tsx b/apps/web/src/components/SidebarV2.tsx index a62e09a3b8..cd676d197c 100644 --- a/apps/web/src/components/SidebarV2.tsx +++ b/apps/web/src/components/SidebarV2.tsx @@ -324,9 +324,9 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { const rowClassName = cn( "group/v2-row relative w-full cursor-pointer select-none rounded-md text-left", props.isActive - ? "bg-foreground/[0.11] text-foreground dark:bg-white/[0.11]" + ? "bg-background text-foreground shadow-xs/5 ring-1 ring-inset ring-border dark:bg-white/[0.11] dark:shadow-none dark:ring-0" : isSelected - ? "bg-foreground/[0.07] text-foreground dark:bg-white/[0.07]" + ? "bg-muted text-foreground dark:bg-white/[0.07]" : "hover:bg-accent/65", ); @@ -355,7 +355,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { : status !== "ready" ? "font-semibold text-foreground/95" : shouldRecede - ? "font-normal text-muted-foreground/75" + ? "font-normal text-muted-foreground/80" : "font-medium text-foreground/90", ) : cn( @@ -364,7 +364,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { ? "text-foreground" : isUnread ? "font-medium text-muted-foreground" - : "text-muted-foreground/60", + : "text-muted-foreground/70", ), )} > @@ -399,8 +399,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { > {props.showSettledGap ? (
- Settled - + Settled +
) : null}
- + {props.jumpLabel ?? compactSidebarTimeLabel( @@ -479,17 +479,17 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { tabIndex={0} data-testid="sidebar-v2-row-card" className={cn( - // Every card carries a faint tonal fill so threads read as - // discrete objects; active/selected/hover are brighter tones of - // the same treatment rather than a different shape. + // Light cards sit just above the zinc rail instead of tinting it + // darker. Active/selected rows then add only a restrained neutral + // fill. Dark mode keeps the original graphite treatments. "group/v2-row relative w-full cursor-pointer select-none overflow-hidden rounded-lg text-left transition-colors", props.isActive - ? "bg-foreground/[0.11] text-foreground dark:bg-white/[0.11]" + ? "bg-background text-foreground shadow-xs/5 ring-1 ring-inset ring-border dark:bg-white/[0.11] dark:shadow-none dark:ring-0" : isSelected - ? "bg-foreground/[0.07] text-foreground dark:bg-white/[0.07]" + ? "bg-muted text-foreground dark:bg-white/[0.07]" : shouldRecede - ? "bg-foreground/[0.025] hover:bg-accent/45 dark:bg-white/[0.025]" - : "bg-foreground/[0.035] hover:bg-accent/65 dark:bg-white/[0.035]", + ? "bg-background/50 hover:bg-accent/45 dark:bg-white/[0.025]" + : "bg-background hover:bg-accent/65 dark:bg-white/[0.035]", )} onClick={handleClick} onDoubleClick={handleDoubleClick} @@ -506,7 +506,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: { {props.projectTitle ? ( )} - + {props.jumpLabel ? ( props.jumpLabel ) : topStatus ? ( @@ -556,7 +556,7 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
{title}
-
+
{thread.branch ? ( {thread.branch} @@ -805,7 +805,7 @@ export default function SidebarV2() { // filter context changes so a scope/search flip never inherits a deep // page state. const [settledVisibleCount, setSettledVisibleCount] = useState(SETTLED_TAIL_INITIAL_COUNT); - const settledResetKey = `${projectScopeKey ?? "all"}`; + const settledResetKey = projectScopeKey ?? "all"; const lastSettledResetKeyRef = useRef(settledResetKey); if (lastSettledResetKeyRef.current !== settledResetKey) { lastSettledResetKeyRef.current = settledResetKey; @@ -1415,12 +1415,12 @@ export default function SidebarV2() { render={ } > - + Search {commandPaletteShortcutLabel ? ( @@ -1432,7 +1432,7 @@ export default function SidebarV2() { - + @@ -1472,7 +1472,7 @@ export default function SidebarV2() { "shrink-0 rounded-md border px-2.5 py-1 text-[11px] font-medium transition-colors", projectScopeKey === null ? "border-foreground/15 bg-accent text-foreground" - : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40", + : "border-border bg-background/60 text-muted-foreground hover:border-input hover:bg-background hover:text-foreground dark:border-white/15 dark:bg-transparent dark:hover:border-white/40 dark:hover:bg-transparent", )} > All @@ -1492,7 +1492,7 @@ export default function SidebarV2() { "flex shrink-0 items-center gap-1.5 rounded-md border py-1 pl-1.5 pr-2.5 text-[11px] font-medium transition-colors", isScoped ? "border-foreground/15 bg-accent text-foreground" - : "border-black/15 text-muted-foreground hover:border-black/40 hover:text-foreground dark:border-white/15 dark:hover:border-white/40", + : "border-border bg-background/60 text-muted-foreground hover:border-input hover:bg-background hover:text-foreground dark:border-white/15 dark:bg-transparent dark:hover:border-white/40 dark:hover:bg-transparent", )} > -
+
} > @@ -1586,7 +1586,7 @@ export default function SidebarV2() {