Repository navigation
Centre the theme switch icon, same square button in every calculator - #28
Merged
Merged
Conversation
A general ".toolbar .btn { padding: 0 10px }" rule overrode the icon
button's "padding: 0", leaving 12 px for a 16 px icon in a 32 px button,
so the icon sat 3 px right of centre. The theme switch is now a square
icon button with no padding and the icon centred, in every ehcrea
calculator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSyM8REeQdPhYZ6eSWmgc
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.
Requested by Eren · project thread
The theme switch is now a square icon button with no padding and the icon exactly centred, the same in all 8 ehcrea calculators (34 px here, matching this toolbar's button height; 33 px at ≤480 px). It was a wider 40×34 button before.
Cause elsewhere: in five calculators a general
.toolbar .btn { padding: 0 10px }rule overrode the icon button'spadding: 0, pushing the icon 3 px right of centre.Tested with Playwright at 1280 and 390 px: icon centre offset 0 px horizontally and vertically in all 8 apps; tests pass; no phone overflow.
Generated by Claude Code