Skip to content

fix(load-dialog): keep recent-message list inside the modal - #129

Merged
StephenTangCook merged 2 commits into
mainfrom
claude/inspiring-black-40c5b7
Jun 30, 2026
Merged

fix(load-dialog): keep recent-message list inside the modal#129
StephenTangCook merged 2 commits into
mainfrom
claude/inspiring-black-40c5b7

Conversation

@StephenTangCook

Copy link
Copy Markdown
Contributor

What changed

The "Edit an existing message" dialog's recent-message picker rows overflowed the modal horizontally. With min-width: auto at every flex/grid level between each row's shrink-0 timestamp and the dialog's fixed width, intrinsic content width won, so long labels and timestamps spilled past the modal edge instead of truncating.

  • Added min-w-0 down the chain (content wrapper → recent section → scroll container → each item button → the title row) so widths resolve to the dialog and the existing truncate takes effect.
  • Bumped the message-label text to text-sm so it matches the channel name.
  • Made the formatted date bold black (font-semibold text-foreground) while leaving the raw (ts) muted/monospace.

Why

Long recent-message labels/timestamps broke the modal layout (see attached repro). The truncation classes were already present but never engaged because no ancestor allowed shrinking.

Reviewer notes

Verified in the demo: with a screenshot-length label the item's right edge sits at 582px inside the 607px dialog (truncates); without the fix it extended to 2081px. Pure CSS-class change, no logic touched.

The recent-messages picker rows overflowed the dialog horizontally: with
`min-width: auto` at every flex/grid level between each row's `shrink-0`
timestamp and the dialog's fixed width, intrinsic content width won and long
labels/timestamps spilled past the modal edge instead of truncating.

Add `min-w-0` down the chain (content wrapper, recent section, scroll
container, item button, title row) so widths resolve to the dialog and the
existing `truncate` takes effect. Also bump the message-label to text-sm to
match the channel name, and make the formatted date bold black while leaving
the raw `(ts)` muted/monospace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
block-kitchen ba64391 Commit Preview URL

Branch Preview URL
Jun 30 2026, 06:25 AM

…cent rows

Force the dialog subtitle row left-aligned (the shared DialogHeader centers
it below the sm breakpoint). Remove the per-row channel name from the
recent-message list since the user already picks the channel above it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StephenTangCook
StephenTangCook merged commit bb2bfc4 into main Jun 30, 2026
13 checks passed
@StephenTangCook
StephenTangCook deleted the claude/inspiring-black-40c5b7 branch June 30, 2026 06:28
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.

1 participant