Skip to content

Centre the theme switch icon, same square button in every calculator - #28

Merged
ehcrea merged 1 commit into
mainfrom
claude/project-thread-mq981r
Nov 22, 2026
Merged

ehcrea merged 1 commit into
mainfrom
claude/project-thread-mq981r

Conversation

@ehcrea

@ehcrea ehcrea commented Nov 22, 2026

Copy link
Copy Markdown
Owner

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's padding: 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

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
@ehcrea
ehcrea merged commit 5c8fb17 into main Nov 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants