Skip to content

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

Closed
brsbl wants to merge 2 commits into
bb/macos-traffic-light-alignment-thr_eigbyjruhsfrom
bb/sidebar-parent-title-width-thr_eigbyjruhs
Closed

brsbl wants to merge 2 commits into
bb/macos-traffic-light-alignment-thr_eigbyjruhsfrom
bb/sidebar-parent-title-width-thr_eigbyjruhs

Conversation

@brsbl

@brsbl brsbl commented Oct 14, 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

  • Ladle sidebar/Thread list story in Chrome for Testing: parent with a long, mid-length and short title, each at rest, hovered and keyboard-focused. Measured: at rest the long parent title is 200px wide (was 170px), level with leaf titles (226px for the leaf's deeper indent); hovering moves neither the title nor the arrow, and a click at the arrow's center still hits Expand/Collapse.
  • Not covered: touch devices, Safari, and rows with several plugin quick actions.
  • These captures were taken on the layer's pre-rebase revisions; the layer's own diff is unchanged by the rebase.
  • Remote CI runs the tests; nothing was run locally.

Layer 3 · Sidebar parent titles

Before: d21237b64 · After: 7a6e0e0f9 (pre-rebase; now 294349270) · 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

BB-Thread-ID: thr_eigbyjruhs

🤖 Generated with Claude Code

AGENT GENERATED

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T00:57:07.315809Z b87d67f 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 added this pull request to stack #5463 October 14, 2026 00:53
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from 38bdc37 to b027176 Compare October 14, 2026 03:12
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from b027176 to 8534119 Compare October 14, 2026 03:17
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from 8534119 to 2943492 Compare October 14, 2026 03:25
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from 2943492 to 168197a Compare October 14, 2026 05:12
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from 168197a to 88f48b6 Compare October 14, 2026 17:45
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch 2 times, most recently from a57ee44 to 43cc968 Compare October 14, 2026 19:12
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from 43cc968 to f971743 Compare October 14, 2026 23:35
brsbl and others added 2 commits October 14, 2026 23:35
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]>
@brsbl
brsbl force-pushed the bb/sidebar-parent-title-width-thr_eigbyjruhs branch from f971743 to f3fc1df Compare October 14, 2026 23:36
@brsbl

brsbl commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #5530 (Let parent thread titles use the hidden quick-action space), the same change as its own PR from main; it doesn't depend on the frame layers.

@brsbl brsbl closed this Oct 15, 2026
brsbl added a commit that referenced this pull request Oct 15, 2026
## 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](https://github.com/user-attachments/assets/62cc54e4-7d56-4cf3-9ad9-b31b15dfebbb)
| ![After at
rest](https://github.com/user-attachments/assets/c04e3de8-a05d-453f-af51-3074e358a64f)
|
| Long parent title · hovered | Ladle · 288px sidebar | ![Before
hovered](https://github.com/user-attachments/assets/455a1005-aa79-4bb4-97ce-5edb2e1120e7)
| ![After
hovered](https://github.com/user-attachments/assets/3050ff3c-7582-42e0-9c42-259459e0c7a7)
|

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](https://claude.com/claude-code)

> AGENT GENERATED

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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