-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove gap between bottom clock and board on mobile #16920
Closed
Closed
Conversation
This file contains 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
…r to remove the small gap between the bottom clock and the board.
7c8a2d7
to
e84af81
Compare
9040ebc
to
e09ab2c
Compare
The gap size depends on the screen width, because the board must be square, and its size must be a multiple of 8px in order to avoid rendering issues on many browsers/devices. It's true for each and every board displayed on the website. Hardcoding any margin (like 3px) will only work on your precise screen resolution. |
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.
This PR shifts the bottom clock up by 3 pixels (on mobile in vertical mode) in order to remove the gap between it and the chessboard.
Also, the PR shouldn't change the relative positioning of the clock numbers within their clock, but I can't really tell for sure for the bottom clock (see screenshots below).
Before (with both clocks in green to show positioning):
![image](https://private-user-images.githubusercontent.com/32089502/410268584-d8e8d6ca-ab7f-4b6e-92bf-c0b9caba1d91.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTYzODksIm5iZiI6MTczOTA1NjA4OSwicGF0aCI6Ii8zMjA4OTUwMi80MTAyNjg1ODQtZDhlOGQ2Y2EtYWI3Zi00YjZlLTkyYmYtYzBiOWNhYmExZDkxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIzMDgwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjMWVlMDRlNGM0ZWZjNWZhNTc3NzQyNzJiYzcyNTk3MGRlNDU0ZTliNGVmN2JhZGY3NmZkODQxNzhhOTQyOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dfvdNTnUcCWO-7u_l_jQ6MkS8lYWn8ZA6POxKTAnLoA)
After:
![image](https://private-user-images.githubusercontent.com/32089502/410268608-7858fd14-fc5c-4c78-bbf8-e2f253673604.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTYzODksIm5iZiI6MTczOTA1NjA4OSwicGF0aCI6Ii8zMjA4OTUwMi80MTAyNjg2MDgtNzg1OGZkMTQtZmM1Yy00Yzc4LWJiZjgtZTJmMjUzNjczNjA0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIzMDgwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxYWY4YTQyOGY1MWU0NTQ0M2FkNjIyNTA2MmIyZjQ0ZTA4Yzk2M2Y5ZTdjYTE5MzM1NGE1YzkwMGFhNDdiNzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iatWEJs0AVGqWW-z26q6JTtF4HxWniH3wA_2Pdd6Gz0)