Skip to content

Unsloth Studio / Desktop: keep release-notes table links from splitting mid-word in the update popup - #12543

Merged
danielhanchen merged 5 commits into
unslothai:mainfrom
LeoBorcherding:fix/release-notes-table-link-wrap
Oct 3, 2026
Merged

danielhanchen merged 5 commits into
unslothai:mainfrom
LeoBorcherding:fix/release-notes-table-link-wrap

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

In the update popup's expanded release notes, the "Download Unsloth Desktop" table squeezes its Link column until "Download" breaks across two lines ("Downlo / ad").

Cause

MarkdownPreview puts overflow-wrap: anywhere on the whole markdown root. Inside an auto-sized table, anywhere lets the browser count a cell as narrow as one character when it works out column widths. So the Link column gets shrunk past the width of the word, and the word splits.

Fix

release-notes-panel.tsx sets overflow-wrap: break-word (break-words) on td and th in the expanded notes. Unlike anywhere, break-word doesn't let the browser size a column below the width of its longest word, so "Download" stays on one line. Paragraphs, lists and code blocks keep their current wrapping.

One trade-off: a cell holding a long unbroken string (a bare URL) now sizes its column to that string in Chromium, so the table scrolls sideways inside its own table frame instead of wrapping the URL. The notes area and the card keep their width, and nothing paints past the card. Firefox still wraps it. This is how GitHub renders wide markdown tables too.

The change only touches the update popup (web and desktop banners share the panel). Other MarkdownPreview users (chat, notes) behave the same as before.

Before / after

Expanded notes with a Platform | Link table, merge base vs this branch:

Before: Download splits as Downlo / ad in every row. After: Download stays on one line.

Before After
Lines per "Download" link (Chromium) 2, 2, 2 1, 1, 1
Lines per "Download" link (Firefox) 2, 2, 2 1, 1, 1
Notes area widened by a bare-URL table no no

Testing

  • tests/studio/playwright_update_banner_layout.py gains a "release-notes tables" phase (1440x900 and 390x844; Firefox and WebKit run it in the spot lane): every "Download" link on one line, and no notes table painting past the card. Same test file against both installs: merge base 380 checks, 1 failed (links=[['Download', 2], ['Download', 2], ['Download', 2]]), this branch 380 checks, 0 failed.
  • tests/studio/test_update_release_notes.py: 202 passed.

@danielhanchen

Copy link
Copy Markdown
Member

The Frontend build + bundle sanity failure (over the startup budget: transfer 1800.x KB > 1796.9 KB) is main's, not this PR's: #11491 pushed main's eager startup bundle past the budget. #12560 re-measures it; a re-run or push after it lands should clear the check.

@danielhanchen

Copy link
Copy Markdown
Member

The new Repo tests (CPU, rest) red (test_studio_evaluated_unions_do_not_grow) is also main's: #12556, merged just now, fixes it.

@danielhanchen

Copy link
Copy Markdown
Member

Review record for #12543, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#353.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror 41d35263d (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 41d35263d1

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 41d35263d (no equivalent commit found on this PR).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

@danielhanchen
danielhanchen marked this pull request as ready for review October 3, 2026 16:48
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@danielhanchen
danielhanchen merged commit 9d90475 into unslothai:main Oct 3, 2026
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
…ng mid-word in the update popup (unslothai#12543)

* Unsloth Studio / Desktop: keep release-notes table links from splitting mid-word

* Pin release-notes table links to one line in the update banner layout suite

---------

Co-authored-by: Daniel Han <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants