Repository navigation
Make menu rows concentric with their menu - #424
Merged
Merged
Conversation
Menus mixed 8px (rounded-lg) and 10px panels with 4px (rounded-sm) rows inside a 4px padding, so the highlight's corners did not follow the panel's. Two tokens in app.css set both: --radius-menu for the panel and --radius-menu-item, the panel's radius less the p-1 padding, both off --radius and rem so they hold at any theme radius and zoom. Dropdown, context, select and searchable menus and the status bar's hand-built menu rows use them.
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.
A highlighted menu row had tighter corners than the menu around it, most visible on Disconnect in the status bar's connection menu (a 10px panel around 4px rows). Menus mixed 8px and 10px panels, all with 4px rows in 4px of padding.
app.cssadds--radius-menu(--radius+ 0.25rem, 10px by default) and--radius-menu-item(that minus the p-1 padding). Both follow--radiusand the zoom.rounded-menuandrounded-menu-item, as do the status bar's hand-built rows inside those menus.Checked in the app on Linux: the connection menu's Disconnect row and the sidebar's right-click menu now sit evenly inside their panels. npm test, svelte-check and design lint pass.
Not merged yet: I'm holding releases until I say so, and the nightly workflow also runs on a schedule.