Skip to content

fix(desktop): constrain message timeline width with min-w-0#1092

Merged
tlongwell-block merged 2 commits into
mainfrom
fix/timeline-min-width-overflow
Jun 17, 2026
Merged

fix(desktop): constrain message timeline width with min-w-0#1092
tlongwell-block merged 2 commits into
mainfrom
fix/timeline-min-width-overflow

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

Problem

When the thread panel is open the message timeline shrinks to a narrow column. A long unbreakable token (e.g. a long URL) expanded message rows to their content min-width, pushing the whole channel area wider than the viewport. The right-anchored reactions/reply bar then rendered offscreen — even though it was correctly placed relative to the message.

This is the bug Tyler reported in buzz-bugs. #1081 fixed autolink overflow-wrap (a different symptom) but rows could still expand because the content flex column never shrank below its children's min-content width.

Fix

MessageTimeline.tsx: add min-w-0 to the content flex wrapper (flex flex-col gap-2flex min-w-0 flex-col gap-2). A flex column won't shrink below content min-width without min-w-0; adding it lets the column stay within its constrained width and forces children to wrap/clip instead of widening the timeline.

One line, timeline-scoped — no change to shared CSS, zero blast radius on other callers.

Test

New e2e regression in messaging.spec.ts: narrow viewport (1024px) + thread panel open + long unbreakable token, asserting both the row's right edge and the action bar's right edge stay within the timeline's right edge.

Verification

  • biome clean, build green
  • e2e suite green (incl. new regression)
  • Before/after screenshots confirmed: action bar offscreen → fully visible

The timeline content flex column lacked min-w-0, so a long unbreakable token expanded message rows to their content min-width and pushed the whole channel area wider than the viewport. The right-anchored action bar then rendered offscreen even though it was correctly placed relative to the message.

Add min-w-0 to the content flex wrapper so the column shrinks to its constrained width. Add an e2e regression: narrow viewport + thread panel open + long token, asserting the row and action bar stay within the timeline's right edge.

Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block tlongwell-block merged commit 7de5517 into main Jun 17, 2026
23 checks passed
@tlongwell-block tlongwell-block deleted the fix/timeline-min-width-overflow branch June 17, 2026 21:53
tlongwell-block pushed a commit that referenced this pull request Jun 18, 2026
…te-response

* origin/main: (194 commits)
  Fold agent core memory into the session system prompt (#1112)
  feat(cli): add patches and issues commands for NIP-34 git collaboration (#1073)
  fix(desktop): stop random timeline message loss + page reconnect replay (#1105)
  Update README.md
  fix(desktop): keep thread replies from scrolling channel (#1109)
  fix(buzz-acp): accept siblings under allowlist author gate (#1108)
  feat(deploy): add production Helm chart for Buzz (#990)
  fix(desktop): keep MembersSidebar input usable while an add is in flight (#1106)
  chore(release): release version 0.3.25 (#1102)
  fix(desktop): stop dimming deferred message lists (#1104)
  Smooth channel loading: single-surface timeline state machine (#1099)
  feat: surface base + persona system prompts in observer feed (#1103)
  ci: move reminder e2e to a dedicated backend-integration job (#1098)
  fix: give agent-observer sub a replay-capable limit (#1100)
  fix: make managed-agent spawn and teardown portable to Windows (#1097)
  fix(desktop): constrain message timeline width with min-w-0 (#1092)
  feat(desktop): reminders notifications, snooze, overlay, and inbox view mode (#1093)
  feat(prompt): add memory hygiene and hoist universal engineering discipline to base prompt (#1085)
  fix(desktop): correct thread-unread badge flicker, stale clear, phantom count, mention gate, and nested count (#1080)
  Fix mention chip alignment (#1094)
  ...

# Conflicts:
#	crates/buzz-cli/src/commands/workflows.rs
tlongwell-block pushed a commit that referenced this pull request Jun 18, 2026
…te-response

* origin/main: (194 commits)
  Fold agent core memory into the session system prompt (#1112)
  feat(cli): add patches and issues commands for NIP-34 git collaboration (#1073)
  fix(desktop): stop random timeline message loss + page reconnect replay (#1105)
  Update README.md
  fix(desktop): keep thread replies from scrolling channel (#1109)
  fix(buzz-acp): accept siblings under allowlist author gate (#1108)
  feat(deploy): add production Helm chart for Buzz (#990)
  fix(desktop): keep MembersSidebar input usable while an add is in flight (#1106)
  chore(release): release version 0.3.25 (#1102)
  fix(desktop): stop dimming deferred message lists (#1104)
  Smooth channel loading: single-surface timeline state machine (#1099)
  feat: surface base + persona system prompts in observer feed (#1103)
  ci: move reminder e2e to a dedicated backend-integration job (#1098)
  fix: give agent-observer sub a replay-capable limit (#1100)
  fix: make managed-agent spawn and teardown portable to Windows (#1097)
  fix(desktop): constrain message timeline width with min-w-0 (#1092)
  feat(desktop): reminders notifications, snooze, overlay, and inbox view mode (#1093)
  feat(prompt): add memory hygiene and hoist universal engineering discipline to base prompt (#1085)
  fix(desktop): correct thread-unread badge flicker, stale clear, phantom count, mention gate, and nested count (#1080)
  Fix mention chip alignment (#1094)
  ...

Co-authored-by: Tyler Longwell <tlongwell@squareup.com>
Signed-off-by: Tyler Longwell <tlongwell@squareup.com>

# Conflicts:
#	crates/buzz-cli/src/commands/workflows.rs
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.

2 participants