mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-11-17 02:45:59 +01:00
close navbar on navigation for mobile
This commit is contained in:
parent
9b7976ebbd
commit
aeb67c5202
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { page } from '$app/stores'
|
||||
import { navigating, page } from '$app/stores'
|
||||
import logo from '$lib/images/logos/hyprland-color.svg'
|
||||
import GithubIcon from '~icons/ri/github-fill'
|
||||
import DiscordIcon from '~icons/prime/discord'
|
||||
|
@ -8,6 +8,8 @@
|
|||
|
||||
let isExpanded = false
|
||||
|
||||
$: if ($navigating) isExpanded = false
|
||||
|
||||
function toggleExpanded() {
|
||||
isExpanded = !isExpanded
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue