Segmented control: Fix the selected pill size on first paint - #515
Merged
AllTerrainDeveloper merged 1 commit intoAug 7, 2026
Merged
Conversation
The thumb is placed from getBoundingClientRect, which reports boxes through every ancestor transform. A window plays os-window--opening (scale 0.92 to 1) while the panel inside it renders, so the pill was measured at 0.92 and stayed there: a transform does not resize the border box, so the ResizeObserver never fired when the animation landed. Picking another option re-measured it at scale 1, which is why it only looked wrong until you touched it. Divide the scale back out, using offsetWidth as the untransformed border box. Ratios within 0.02 of 1 are treated as 1, since offsetWidth is integer-rounded and the group is content-sized, so the ratio is never quite 1 even with no transform in play. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
AllTerrainDeveloper
deleted the
claude/preferences-active-option-cutoff-6a4ece
branch
August 7, 2026 07:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Fixes the lit pill behind the selected option in a segmented control rendering smaller than its label on first paint, so the text overhangs it on both sides. Visible on OpenStation Preferences > Appearance (Desktop layout, Dock size, Window corners, Admin bar). Picking any option corrects it, and it stays correct.
Why are these changes being made?
Because the UI looked broken.
Testing Instructions
/wp-adminand openOpenStation Preferencesfrom the dock, then theAppearancetab.Desktop layout,Dock sizeandWindow corners. The label must not stick out on either side.Admin barfurther down the tab and make sure the same holds there.