Repository navigation
Fix composer send and stop icon centering across display scales - #10407
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Both composer action glyphs carried a hand-tuned sub-pixel translate: the send arrow -0.25px and the stop square -0.5px. A translate is a CSS length, so its device-pixel value follows the display scale, and it only leaves the raster symmetric when the glyph's ink center lands on a pixel center or a pixel boundary. The arrow's ink center sat at 17.75 CSS px in a 36px action. At DPR 2 that is 35.5 device px, a pixel center, so it looked centered on Retina. At DPR 1 it is a quarter pixel off every symmetry point and the arrowhead's left tip took 2.9x the ink of its right tip, which reads as the arrow sitting a pixel to the left. At 1.5 it was 9.7x. The stop square's -0.5px happened to survive DPR 1 and 2 and broke at 1.25 and 1.5, up to 3.2x. Drop both translates. Each glyph is then flex-centered in its action with equal gutters, so a reflection about the action's center maps it onto itself at every ratio, and glyph and circle share one sub-pixel offset. Edge ink ratio at 1, 1.25, 1.5 and 2 is now 0.99x to 1.03x for both, against 2.9x to 9.7x for the arrow and up to 3.2x for the square before. aui-composer-cancel-icon had no other rule, so it goes with the translate.
shimmyshimmer
force-pushed
the
studio-composer-icon-centering
branch
from
September 7, 2026 00:15
f3caea4 to
1ee5f8c
Compare
Member
Author
|
@codex review |
This comment was marked as resolved.
This comment was marked as resolved.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Sep 7, 2026
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.
The composer send arrow and stop square used fixed left offsets intended for Retina displays. Those offsets pushed the icons off-center at other display scales. Remove both offsets, retain flex centering, and remove the unused stop-icon class from all six call sites.
Add browser measurements of the SVG box and drawn glyph against the button center. Each engine covers 216 configurations across display scaling, page zoom, UI font size, themes, and text directions. The checks reuse existing CI jobs: Chromium on Linux, Chromium and Firefox on Windows, and Chromium and WebKit on macOS.
Validation: