Skip to content

fix(settings): keep the This device badge whole beside a long device name (#1179) - #2187

Merged
devswha merged 1 commit into
mainfrom
fix/v049-qa-ui-findings
Oct 28, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/v049-qa-ui-findings

Conversation

@devswha

@devswha devswha commented Oct 28, 2026

Copy link
Copy Markdown
Owner

What it does

Settings → Phone & devices → Devices keeps the "This device" badge in one piece beside a device's name on a phone. Before, at 390 px the pill beside "iPhone · Safari" broke between its two words: "THIS" at the end of the name's line and "DEVICE" on the next (#1179, item 1).

Why

.devices-current was a plain inline span, so the line breaker split it like any text. It is now display: inline-block: an atomic inline box is never split across lines, so beside a name that fills the line it moves to the next line whole. Its own words still wrap inside it when the column is narrower than the pill (a 320 px phone in Japanese with the row's Revoke? open), so it never runs under the row's buttons. This is how chip-style labels behave in the apps we compare against (the GitHub and Linear label chips, iOS Settings' badges): a chip moves as a unit and is never cut across two lines.

A first version also had white-space: nowrap; Codex's review showed it could overflow a narrow column (MEDIUM), so it was dropped.

The other items in #1179, checked on main d9050a0

  • 2. Shortcut overrides across tabs: fixed by fix(shortcuts): sync overrides across browser tabs #1827.
  • 3. Split view after "Close this half": not reproduced. A probe on the isolated test herdr closed a half in six layouts (two tabs with each half active, closing left or right; one tab drawn in both halves, closing either; one single-pane tab in both halves). After each close, .xterm count equalled the remaining tab's panes, document.hasFocus() was true and no "Paused while you use another window" banner showed, also 2.5 s later (past RELEASE_AFTER_MS).
  • 4. Phone tap while reconnecting: not reproduced. At 390 px with touch emulation, the socket was dropped and refused (routeWebSocket) until the pane showed "Reconnecting to Ovis…". A tap on the grid then focused xterm-helper-textarea in both the auto and the line input modes, and typed text showed as "Input held" in the banner.
  • 5. PSReadLine colours on the light theme: these are PowerShell's own colours for a dark background; the mirrored pane draws what the program sends. No change.

Closes #1179

How it was verified

  • scripts/device-security-demo-regression.ts (the watching-device block) now sets the current device's name, in place, to every prefix of a long name and checks the pill is one box, one line high as beside a one-letter name. It then narrows the name column to the pill's widest word plus its margin and checks the pill stays inside it. Mutation runs: the old CSS fails the first check at 390; the nowrap version fails the second; this change passes at 390 and 1440, light and dark, and Korean at 390.
  • bun run check fast: success on 2c99503 (7925 pass, 0 fail).
  • Reviews: omo-native-code-reviewer (found the rect-count check could not see a pill wrapping inside its own box; fixed with the height check) and Codex Sol 6.1 Fast xhigh (MEDIUM above, fixed; re-review PASS on 2c99503).

…name (#1179)

At 390 px the pill beside "iPhone · Safari" broke between its two words, its first half at the end of the name's line and its second on the next. It is now one inline box: beside a name that fills the line it moves to the next line whole. Its words still wrap inside it in a column narrower than the pill (a phone's row with Revoke? open), so it never runs under the row's buttons. The demo regression checks both: one box one line high beside names of every length, and inside a column as narrow as the pill's widest word.
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8299220 and 2c99503.

Files selected for processing: 3
  • changelog.d/this-device-badge-one-line.md
  • scripts/device-security-demo-regression.ts
  • src/components/DevicesPanel.css
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Merging 2c99503: omo-native-code-reviewer and Codex both pass this head. The change is one CSS declaration (display: inline-block on .devices-current), and its browser regression check runs in CI. The required checks are green, and CodeRabbit did not review this head. The LOW notes go to a follow-up issue.

@devswha
devswha merged commit 4e87188 into main Oct 28, 2026
11 checks passed
@devswha
devswha deleted the fix/v049-qa-ui-findings branch October 28, 2026 05:37
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.

Small UI findings from the v0.4.9 release QA

1 participant