mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-12-23 10:49:49 +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>
|
<script>
|
||||||
import { page } from '$app/stores'
|
import { navigating, page } from '$app/stores'
|
||||||
import logo from '$lib/images/logos/hyprland-color.svg'
|
import logo from '$lib/images/logos/hyprland-color.svg'
|
||||||
import GithubIcon from '~icons/ri/github-fill'
|
import GithubIcon from '~icons/ri/github-fill'
|
||||||
import DiscordIcon from '~icons/prime/discord'
|
import DiscordIcon from '~icons/prime/discord'
|
||||||
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
let isExpanded = false
|
let isExpanded = false
|
||||||
|
|
||||||
|
$: if ($navigating) isExpanded = false
|
||||||
|
|
||||||
function toggleExpanded() {
|
function toggleExpanded() {
|
||||||
isExpanded = !isExpanded
|
isExpanded = !isExpanded
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue