Skip to content

Fix vertical jump of icons in compact sidebar on hover#7622

Open
lacatoire wants to merge 1 commit into
EasyCorp:4.xfrom
lacatoire:fix/compact-sidebar-icon-jump
Open

Fix vertical jump of icons in compact sidebar on hover#7622
lacatoire wants to merge 1 commit into
EasyCorp:4.xfrom
lacatoire:fix/compact-sidebar-icon-jump

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

In compact sidebar mode (desktop), .menu-item-contents has no fixed height and uses align-items: center. On hover, .menu-item-label (display: none → block) adds its line-height to the flex line, growing the container by 1-3px and visibly shifting the icon vertically.

Pin .menu-item-contents block-size to 35px (padding 7+7 + icon 21) and the label's line-height to 21px, scoped to the existing compact-on-desktop rules. Other widths (mobile, expanded desktop) are untouched.

Fixes #7614

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.

1 participant