Repository navigation
Stop the cell editor from changing how a value looks - #428
Merged
Merged
Conversation
The canvas draws cell values at 86% of the foreground, and the editor drew the same value at full foreground, so it read brighter and larger the moment editing started. The editor now uses the canvas colour, and the input inside it drops its default vertical padding and margin so the glyphs stay on the pixels the canvas drew them on. Field edges are clearer: --field-border goes from 16% to 22% of the foreground, and search boxes use it too (32% on hover). Focus stays one crisp accent edge with no halo.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Editing a cell made its value look a size bigger. The canvas draws values at 86% of the foreground and the editor drew them at 100%, so the text jumped brighter and heavier when editing started. The editor now uses the canvas colour, and its input drops the default vertical padding and margin so the glyphs stay where the canvas drew them.
Field edges are a step clearer:
--field-borderis 22% of the foreground (was 16%), and the search boxes use the same token (32% on hover). Focus is still one crisp accent edge, no halo.Checked in the desktop app on Linux: an edited cell's text matches its neighbours in size, position and colour. Design lint, both vitest suites and
npm run buildpass.