Skip to content

Commit

Permalink
fix(style): avoid menu items wrapping
Browse files Browse the repository at this point in the history
Fixes the menu item wrapping by adjusting the margin between items and
using a flex box on the parent element.
  • Loading branch information
jboix committed Mar 23, 2024
1 parent 88d6c6a commit 594a062
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/layout/header/demo-header-component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ ul, li {
list-style: none;
}

li {
display: inline-block;
}

route-link::part(a) {
padding: var(--size-1) var(--size-2);
font-size: var(--size-4);
Expand Down Expand Up @@ -43,13 +39,10 @@ core-demo-header {
}

nav ul {
display: flex;
margin-bottom: var(--size-4);

li {
margin-right: var(--size-1);
}

li:last-child {
margin: 0;
}
}

0 comments on commit 594a062

Please sign in to comment.