Repository navigation
fix(sidebar): centre the count in the unread chip - #545
Closed
valentin-morice wants to merge 1 commit into
Closed
valentin-morice wants to merge 1 commit into
valentin-morice wants to merge 1 commit into
Conversation
At the default font size the sidebar's unread count drew 1.5px above the centre of its 18px chip, three rows of accent above a single digit and six below. One pixel of top padding, taken from min-height so the chip keeps its height, brings it to within half a pixel at 1x and centres it at 1.25x and 1.5x text scale.
Owner
|
Hey thanks for the PR, I hadn't noticed this much of a vertical center issue on my machine but I'm glad it will be fixed. This will be landing in today's stable build 1.46.0 with your credit :) |
hyprlab
added a commit
that referenced
this pull request
Oct 29, 2026
At the default font size the count sat 1.5px above the middle of the 18px chip. A pixel moves from min-height into the top padding, so the chip keeps its height. Co-Authored-By: Valentin Morice <100000204+valentin-morice@users.noreply.github.com>
hyprlab
added a commit
that referenced
this pull request
Oct 29, 2026
hyprlab
added a commit
that referenced
this pull request
Oct 29, 2026
Owner
|
Agentic reply: The build is in the repo now: |
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.
At the default font size (Adwaita Sans 11, 1x) the sidebar's unread chip draws its count above centre: a single digit has three rows of accent above it and six below.
This moves one pixel from
min-heightintopadding-top, so the chip keeps its 18px height and the count drops by a pixel, to four rows above and five below. That is as close as a 9px digit gets in an 18px chip.Tested:
.unread-badge-minisets its own padding and min-height, so the compact rail's corner chips are unchanged.