Skip to content

fix(web): align wrapped "Read more" link with update toast text - #47795

Open
mikeozornin wants to merge 3 commits into
pingdotgg:mainfrom
mikeozornin:fix/update-toast-read-more-wrap
Open

mikeozornin wants to merge 3 commits into
pingdotgg:mainfrom
mikeozornin:fix/update-toast-read-more-wrap

Conversation

@mikeozornin

@mikeozornin mikeozornin commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

In the "Update downloaded" toast, "Read more ↗" wraps onto its own line and starts 8px right of the description text instead of lining up with the left edge. The link button has ml-2 to separate it from the sentence, and that margin stays after the line break. Seen on macOS in desktop 0.1.14-nightly.20261202.5611 and reproduced on current main.

Change

Remove ml-2 from the link button and put a plain space before it. A space collapses at a line break, so the wrapped link sits flush with the description text. When the link fits on the same line, the space separates it from the sentence. The button lays out as one inline box, so "Read more ↗" already stays together.

Scope

Small fix for an obvious visual bug in one component, so no issue. #6322 fixed this link's vertical baseline. This PR fixes the horizontal offset when it wraps.

Verification

I ran the web client via vp run dev in isolated state, triggered the real toast by calling showDesktopUpdateDownloadedToast from the Vite module with a fake downloaded-version state, and measured the left edges with getClientRects():

  • Before: description x=903, "Read more" x=911
  • After: description x=903, "Read more" x=903
  • One-line case, with the description shortened to "Restart to install." in the DOM: the link stays on the same line, one space after the text. Text ends at 1012, link starts at 1016.
Before After
before after

Not checked: the packaged Electron build and dark mode. The change only touches spacing inside the toast description, which is the same web component in every client.

Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high and Gemini 4 Neon on high. Verdict: approved by both.

Created with Claude Opus 5.5 in T3 Code. Description written with Gemini 4 Neon.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 2, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 6d5dd36

Macroscope's review found this PR approvable — This adjusts spacing and keeps the update toast’s “Read more” link together when text wraps. Link navigation and update behavior remain unchanged.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The desktop update toast removes the release-notes link button’s left margin. When a release URL is available, the toast places a separate space before the link. Without a release URL, the toast renders neither the link nor the space.

Changes: Desktop update toast layout

Layer / File(s) Summary
Release-notes link spacing
apps/web/src/components/desktopUpdate.toast.tsx
The release-notes link button no longer has a left-margin class. When releaseUrl is available, the toast renders a space before the link. Otherwise, it renders neither the link nor the space.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: chenxin-yan, juliusmarminge

Merge Risk: Minimal · up to bb686

This is a small spacing fix so the "Read more" link lines up with the description text when it wraps in the update toast. It has no meaningful effect on how the app works, and nothing was found that should block the merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the actual change: the wrapped "Read more" link in the update downloaded toast is aligned with the description text. It follows the conventional commit format and is specific. The titl…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template closely. It has a Problem section that explains the wrapped "Read more" misalignment, with the affected version and platform. The Change section explain…
Full details: Title check

Explanation

The title names the actual change: the wrapped "Read more" link in the update downloaded toast is aligned with the description text. It follows the conventional commit format and is specific. The title covers the main fix, and the PR body adds the whitespace-nowrap detail that the title omits.

Full details: Description check

Explanation

The description follows the repository template closely. It has a Problem section that explains the wrapped "Read more" misalignment, with the affected version and platform. The Change section explains removing ml-2 and using a collapsible space. The Scope section says this is a small visual fix with no issue, and it references the related #6322. The Verification section gives measured before and after x-coordinates, a one-line case, before/after screenshots, and states what was not checked. The model and harness are named at the end. The description is complete and specific. Minor notes: the title is not part of the description, and the screenshot links are embedded images rather than repository assets.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6d5dd36 and bb68642.

Files selected for processing: 1

  • apps/web/src/components/desktopUpdate.toast.tsx
Files skipped from review as they are similar to previous changes: 1

  • apps/web/src/components/desktopUpdate.toast.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 2, 2026
juliusmarminge and others added 2 commits December 2, 2026 23:49
The button lays out as one atomic inline box, so its label already
stays together; the wrap offset fix is the collapsible space alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Dec 2, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

/recheck-vouch

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants