Center play triangle in click-to-play button#289
Open
wilcoxjay wants to merge 1 commit into
Open
Conversation
The play icon's SVG path is already balanced, so the margin-left:7% nudge over-corrected and pushed the triangle right of the disc center. Remove it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
margin-left:7%on the play icon's triangle SVG pushes it right of the disc center.Before / after with crosshairs
Before / after no crosshairs
Reproducing the screenshots
To reproduce these screenshots using playwright, save
harness.htmlandcapture.py, and then:harness.htmlRenders the button with the disc + icon CSS copied verbatim from
click-to-play-component.html. Query params toggle themargin-leftunder test (?m=7%25vs?m=0), the red centre crosshair (?g=1), and an engine badge (?badge=1) written by in-page feature detection so each screenshot self-identifies its engine.capture.pyLoads the harness in each engine at 2× scale and screenshots the 300×300 button for every
combination of engine × {before, after} × {crosshair, clean} — the 12 images — and prints
the measured offset per engine.