Repository navigation
Studio: tighten the sidebar pill right inset - #7562
Merged
Merged
Conversation
The nav pills sat at pl-1.5 pr-2, so the gap to the right edge was 8px against 6px on the left and read as visibly lopsided. Drops the right inset to pr-1.75 (7px), leaving a 1px difference that no longer catches the eye. Applied to all six pill containers so every pill keeps the same width.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
The sidebar nav pills sit in containers set to
pl-1.5 pr-2, so the gap to the right edge is 8px against 6px on the left. At a glance the pills read as lopsided, sitting closer to the left edge than the right.This drops the right inset to
pr-1.75, which is 7px on the default--spacingof.25rem. That leaves a 1px difference rather than 2px, enough to stop the eye catching on it without moving the pills off the left edge.Applied to all six pill containers, matching the existing comment that the inset stays uniform so every hover pill keeps the same width.
No behaviour change, purely the padding value.
Testing
npm run typecheckandnpm run buildpass, and the emitted rule ispadding-right: calc(var(--spacing) * 1.75)against--spacing: .25rem, so 7px as intended.Worth an eyeball in the running app before merge, both expanded and in the collapsed icon rail, since the change is deliberately subtle.