Skip to content

Commit 342acab

Browse files
committed
fix(web): show section actions and indent settled rows
Two things the first pass got wrong, both visible the moment the sidebar actually ran. The header actions were hover-only, carried over from when New thread was a nicety next to a project selector that already did the job. The selector is gone: these buttons are now the way into a project, and an action you have to hunt for by hovering is an action most people never find. They stay visible, muted, and brighten on hover. Settled rows ignored their indentation. The slim variant — the shape settled and snoozed rows use — has its own `<li>` that never applied `indentDepth`, so a settled thread inside a project section sat flush against the sidebar edge as if it belonged to no one, while its own Settled header was indented under the project. It now indents and draws the same guides as every other row, which also fixes snoozed rows for whenever they end up nested. Written by Claude Opus 5 in Claude Code.
1 parent 3b0fd41 commit 342acab

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎apps/web/src/components/Sidebar.tsx‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,13 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
13131313
return (
13141314
<li
13151315
data-thread-item
1316-
className="list-none [content-visibility:auto] [contain-intrinsic-size:auto_34px]"
1316+
// Slim rows indent like every other row: a settled thread sitting
1317+
// inside a project section has to line up under it, not flush against
1318+
// the sidebar edge as if it belonged to no one.
1319+
style={groupIndentStyle(indentDepth)}
1320+
className="relative list-none [content-visibility:auto] [contain-intrinsic-size:auto_34px]"
13171321
>
1322+
<GroupIndentGuides depth={indentDepth} />
13181323
<Tooltip>
13191324
<TooltipTrigger
13201325
render={
@@ -4152,8 +4157,12 @@ export default function Sidebar() {
41524157
/>,
41534158
);
41544159
}
4160+
// Always visible, not hover-only: these are the way into a
4161+
// project now that the selector is gone, and an action you
4162+
// have to hunt for by hovering is an action most people
4163+
// never find.
41554164
const headerActionClass =
4156-
"size-5 shrink-0 text-icon-muted opacity-0 transition-opacity focus-visible:opacity-100 group-hover/sidebar-group-header:opacity-100";
4165+
"size-5 shrink-0 text-icon-muted transition-colors hover:text-foreground";
41574166
/**
41584167
* What a section header can do, read off `group.target`
41594168
* rather than off its first thread: a section now exists
@@ -4352,7 +4361,7 @@ export default function Sidebar() {
43524361
key={`group-header:${group.key}`}
43534362
data-thread-selection-safe
43544363
className={cn(
4355-
"group/sidebar-group-header relative flex list-none items-center gap-1 pe-1",
4364+
"relative flex list-none items-center gap-1 pe-1",
43564365
// Top level carries the weight of a shelf header;
43574366
// the nested level reads as a caption inside it,
43584367
// so two grouping axes never look like one flat

0 commit comments

Comments
 (0)