feat: optimize side nav

This commit is contained in:
Michel EDIGHOFFER 2023-01-17 21:36:05 +01:00
parent 07ea1a8152
commit 4d30e80751
2 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@ const { notifications } = useNotifications()
</script>
<template>
<nav sm:px3 flex="~ col gap2" shrink text-size-base leading-normal md:text-lg>
<nav sm:px3 flex="~ col gap2" shrink text-size-base leading-normal md:text-lg h-full>
<div shrink hidden sm:block mt-4 />
<NavSideItem :text="$t('nav.home')" to="/home" icon="i-ri:home-5-line" user-only :command="command" />
<NavSideItem :text="$t('nav.notifications')" to="/notifications" icon="i-ri:notification-4-line" user-only :command="command">

View file

@ -23,8 +23,7 @@ const isGrayscale = usePreferences('grayscaleMode')
<div flex="~ col" overflow-y-auto justify-between h-full max-w-full mt-5>
<NavTitle />
<NavSide command />
<div flex-auto />
<div v-if="isHydrated" flex flex-col>
<div v-if="isHydrated" flex flex-col sticky bottom-0 bg-base>
<div hidden xl:block>
<UserSignInEntry v-if="!currentUser" />
</div>