UX: fix double li-element in mobile list control (#28840)

This commit is contained in:
chapoi 2024-09-12 02:22:32 +02:00 committed by GitHub
parent 18fca966c5
commit bca82e9dec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 16 deletions

View File

@ -51,14 +51,13 @@ export default class NavigationBarComponent extends Component {
<:content>
<DropdownMenu {{on "click" this.dMenu.close}} as |dropdown|>
{{#each @navItems as |navItem|}}
<dropdown.item>
<NavigationItem
@content={{navItem}}
@filterMode={{@filterMode}}
@category={{@category}}
class={{concat "nav-item_" navItem.name}}
/>
</dropdown.item>
<NavigationItem
@content={{navItem}}
@filterMode={{@filterMode}}
@category={{@category}}
class={{concat "nav-item_" navItem.name}}
/>
{{/each}}
<dropdown.item>
<PluginOutlet

View File

@ -71,15 +71,13 @@
display: flex;
flex-direction: column;
&__item {
a {
display: block;
color: var(--primary);
a {
display: block;
color: var(--primary);
&.active {
background: var(--d-selected);
font-weight: bold;
}
&.active {
background: var(--d-selected);
font-weight: bold;
}
}
}