Skip to content

Let parent thread titles use the hidden quick-action space - #5530

Merged
brsbl merged 2 commits into
mainfrom
bb/sidebar-parent-titles-thr_eigbyjruhs
Oct 15, 2026
Merged

brsbl merged 2 commits into
mainfrom
bb/sidebar-parent-titles-thr_eigbyjruhs

Conversation

@brsbl

@brsbl brsbl commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Parent thread rows in the sidebar always reserved 30px on the right for their quick actions, even while those actions were hidden (opacity 0), so long parent titles truncated well before the leaf titles around them (#5125).

What changed

  • Parent rows no longer reserve space for hidden quick actions, so their titles use the full row width at rest.
  • When the actions are revealed (hover, keyboard focus, open menu), they overlay the end of the row and the title fades out under a mask instead of reflowing.
  • If the actions would cover the expand/collapse arrow (long or mid-length titles), they open just left of the arrow so it stays clickable. A small ResizeObserver per parent row detects that overlap; short titles keep the actions at the row's end.
  • Leaf and child rows are unchanged. Rows from another project and archived parents keep their previous layout.

Fixes #5125

How you verified

  • The change is the same diff as before, now applied directly on main (d722659a2); it touches only the thread-list row, its test and the shared hover-actions mask, none of the app-frame files.
  • The captures below were taken earlier from this exact diff in the Ladle sidebar/Thread list story in Chrome for Testing: parent rows with long, mid-length and short titles, at rest, hovered and keyboard-focused. Measured: at rest the long parent title is 200px wide (was 170px), level with leaf titles; hovering moves neither the title nor the arrow, and a click at the arrow's center still hits Expand/Collapse.
  • Re-capturing on current main isn't possible as-is: that story now has only the "Inbox read status" variant, whose rows render no quick actions, so the overlap this change handles never occurs there. On current main the story also fails to load until experimental_ThreadStatusGlyph is added to Ladle's plugin SDK shim (apps/app/.ladle/plugin-sdk-app.ts); that is a separate pre-existing break on main, not touched here.
  • Not covered: touch devices, Safari, and rows with several plugin quick actions.
  • Remote CI runs the tests; nothing was run locally.

Before and after

Captured from this diff on its earlier base · 2× PNGs, same story fixture and state in each pair.

Screen / state Viewport Before After
Long parent title · at rest Ladle · 288px sidebar Before at rest After at rest
Long parent title · hovered Ladle · 288px sidebar Before hovered After hovered

Supersedes #5460, which was a layer of the app-frame stack; this change doesn't depend on the frame changes.

BB-Thread-ID: thr_eigbyjruhs

🤖 Generated with Claude Code

AGENT GENERATED

brsbl and others added 2 commits October 15, 2026 00:39
Parent rows with children kept a permanent right padding equal to the
quick-action strip, even while the actions were invisible. The padding
kept the disclosure chevron, which follows the title, from sliding under
Archive when the actions appeared, but it truncated every long parent
title about 30px early.

Parent rows now reserve nothing. Quick actions stay at the trailing end
when they fit beside the chevron. When the chevron would sit under them,
a ResizeObserver measures the overlap and the actions open just left of
the chevron instead, over the end of the title, which fades out under a
mask while the actions are revealed. The chevron never moves and stays
above the action overlay, so its hit target is unchanged. Leaf,
cross-project and archived rows keep their existing behavior, and
touch layouts (hover: none) are unaffected.

Fixes #5125

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T00:42:13.662971Z 9f8c0ac PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl
brsbl merged commit 115974a into main Oct 15, 2026
47 checks passed
@brsbl
brsbl deleted the bb/sidebar-parent-titles-thr_eigbyjruhs branch October 15, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar: parent titles reserve hidden quick-action space and truncate too early

1 participant