Repository navigation
fix(acpmux): saved environments panel rims are one device pixel (hairline-rims base red) - #23212
Conversation
…device pixel wide hairline-rims, red on base: savedEnvironments.css (from #22406) drew three rounded rims at a raw .5px (the panel, its name field and its select), which macOS WebKit clips unevenly at 1x and at fractional zoom. They now name var(--cmux-hairline, 0.5px), as the pane's other rims do. bun test test/hairline-rims.test.ts: base 3 pass 1 fail (those three lines), this head 4 pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15c77-62d9-78b2-8cc3-73561b989bb5&host=huge-blue
|
Owned by compaction-rows on huge-blue · session |
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Probably yours: CI failed on
Failures:
Matched log linesNot re-run automatically: Written by red: cmux-next checks (god files, concurrency, crash safety, l10n); base red: the same failure on the base 744d318; does not block
Agents: Tour of |
|
Bead |
|
Found 12 test failures on Blacksmith runners: Failures
...and 2 more test failures. View all on Blacksmith: run 39570950454, run 39570948429
|
|
|
|
Shipped in:
|
Problem
hairline-rimsis red on base (seen on #20812 at merge, in a file that PR didn't touch).webviews/src/agent-session/acpmux/savedEnvironments.css, added by #22406, draws three rounded rims at a raw.5px: the environment panel (:14), its name field (:41) and its select (:59). macOS WebKit snaps a sub-pixel rim's inner edge to device pixels but not its rounded clip, so these rims lose edges and corner arcs at 1x and at fractional zoom.Change
The three rims use
var(--cmux-hairline, 0.5px), as the pane's other rims do. The test is unchanged.Changelog
Observed / Not run
bun test test/hairline-rims.test.ts: base7fbe5700e803 pass, 1 fail (the three lines above). This head: 4 pass.scripts/web-lint.sh: two base reds this PR doesn't touch.check:switch-fetchesflagscomposer/keptAttachments.ts:134(visibilitychange, from cmux-next composer: a chat's unsent pictures and files come back when it is reopened or restored #23139), andHistoryPage.tsxhas its prefer-tag-over-role warning (fix(cmux-next history): a lost host is said once, without the raw error banner #22966). Pushed withCMUX_WEB_LINT_SKIP_REASONnaming both.Agent session: huge-blue
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes the saved environments panel so its three rounded borders (the panel, its name field, and its select) render evenly at 1x and at fractional zoom.
.5px, which macOS WebKit clips unevenly; they now usevar(--cmux-hairline, 0.5px)as the pane's other rims do.Written for commit e259eeb. Summary will update on new commits.