Make menu flat if collapsed

This commit is contained in:
Jan Eitzinger 2023-08-24 09:38:12 +02:00
parent 204901189d
commit 69b3f767f6

View File

@ -9,12 +9,10 @@
NavbarBrand, NavbarBrand,
Nav, Nav,
NavItem, NavItem,
NavLink,
NavbarToggler, NavbarToggler,
Dropdown, Dropdown,
DropdownToggle, DropdownToggle,
DropdownMenu, DropdownMenu,
DropdownItem,
InputGroupText, InputGroupText,
} from "sveltestrap"; } from "sveltestrap";
import NavbarLinks from "./NavbarLinks.svelte"; import NavbarLinks from "./NavbarLinks.svelte";
@ -118,7 +116,7 @@
on:update={({ detail }) => (isOpen = detail.isOpen)} on:update={({ detail }) => (isOpen = detail.isOpen)}
> >
<Nav navbar> <Nav navbar>
{#if screenSize > 1500} {#if screenSize > 1500 || screenSize < 576}
<NavbarLinks <NavbarLinks
{clusters} {clusters}
links={views.filter( links={views.filter(