chore: add some vertical gap
This commit is contained in:
parent
63c614d9a4
commit
baaf271eeb
13 changed files with 98 additions and 25 deletions
|
|
@ -9,8 +9,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/bookmarks" :aria-label="$t('nav.bookmarks')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:bookmark-line />
|
to="/bookmarks"
|
||||||
|
:aria-label="$t('nav.bookmarks')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:bookmark-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.bookmarks') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.bookmarks') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/compose" :aria-label="$t('nav.favourites')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:quill-pen-line />
|
to="/compose"
|
||||||
|
:aria-label="$t('nav.favourites')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:quill-pen-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.favourites') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.favourites') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,10 @@ const hideLabel = computed(() => getPreferences(userSettings.value, 'hideBottomN
|
||||||
:aria-label="$t('nav.explore')"
|
:aria-label="$t('nav.explore')"
|
||||||
:active-class="activeClass"
|
:active-class="activeClass"
|
||||||
flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none"
|
flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
@click="$scrollToTop"
|
@click="$scrollToTop"
|
||||||
>
|
>
|
||||||
<div i-ri:compass-3-line />
|
<div aria-hidden="true" i-ri:compass-3-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.explore') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.explore') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/favourites" :aria-label="$t('nav.favourites')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:heart-line />
|
to="/favourites"
|
||||||
|
:aria-label="$t('nav.favourites')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:heart-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.favourites') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.favourites') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink :to="`/${currentServer}/public`" :aria-label="$t('nav.federated')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:earth-line />
|
:to="`/${currentServer}/public`"
|
||||||
|
:aria-label="$t('nav.federated')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:earth-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.federated') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.federated') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/hashtags" :aria-label="$t('nav.hashtags')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:hashtag />
|
to="/hashtags"
|
||||||
|
:aria-label="$t('nav.hashtags')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:hashtag />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.hashtags') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.hashtags') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/home" :aria-label="$t('nav.home')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:home-5-line />
|
to="/home"
|
||||||
|
:aria-label="$t('nav.home')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:home-5-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.home') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.home') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,11 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
:aria-label="$t('nav.lists')"
|
:aria-label="$t('nav.lists')"
|
||||||
:active-class="activeClass"
|
:active-class="activeClass"
|
||||||
flex flex-col items-center place-content-center h-full flex-1
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
class="coarse-pointer:select-none" @click="$scrollToTop"
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
>
|
>
|
||||||
<div i-ri:list-check />
|
<div aria-hidden="true" i-ri:list-check />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.lists') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.lists') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,12 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
group
|
group
|
||||||
:to="`/${currentServer}/public/local`"
|
:to="`/${currentServer}/public/local`"
|
||||||
:aria-label="$t('nav.local')" :active-class="activeClass"
|
:aria-label="$t('nav.local')" :active-class="activeClass"
|
||||||
flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none"
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
@click="$scrollToTop"
|
@click="$scrollToTop"
|
||||||
>
|
>
|
||||||
<div i-ri:group-2-line />
|
<div aria-hidden="true" i-ri:group-2-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.local') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.local') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,13 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
to="/conversations"
|
to="/conversations"
|
||||||
:aria-label="$t('nav.conversations')"
|
:aria-label="$t('nav.conversations')"
|
||||||
:active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none"
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
@click="$scrollToTop"
|
@click="$scrollToTop"
|
||||||
>
|
>
|
||||||
<div i-ri:at-line />
|
<div aria-hidden="true" i-ri:at-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.conversations') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.conversations') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,9 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
place-content-center h-full flex-1 cursor-pointer
|
place-content-center h-full flex-1 cursor-pointer
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
flex flex-col items-center place-content-center h-full flex-1 class="select-none"
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
:class="show ? '!text-primary' : ''"
|
class="select-none"
|
||||||
|
:class="[show ? '!text-primary' : null, hideLabel ? null : 'gap-1'].filter(Boolean).join(' ')"
|
||||||
:aria-label="$t('nav.more_menu')"
|
:aria-label="$t('nav.more_menu')"
|
||||||
@click="toggleVisible"
|
@click="toggleVisible"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,17 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink :to="`/notifications/${lastAccessedNotificationRoute}`" :aria-label="$t('nav.notifications')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
|
:to="`/notifications/${lastAccessedNotificationRoute}`"
|
||||||
|
:aria-label="$t('nav.notifications')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
<div flex relative>
|
<div flex relative>
|
||||||
<div class="i-ri:notification-4-line" text-xl />
|
<div aria-hidden="true" class="i-ri:notification-4-line" text-xl />
|
||||||
<div v-if="notifications" class="top-[-0.3rem] right-[-0.3rem]" absolute font-bold rounded-full h-4 w-4 text-xs bg-primary text-inverted flex items-center justify-center>
|
<div v-if="notifications" class="top-[-0.3rem] right-[-0.3rem]" absolute font-bold rounded-full h-4 w-4 text-xs bg-primary text-inverted flex items-center justify-center>
|
||||||
{{ notifications < 10 ? notifications : '•' }}
|
{{ notifications < 10 ? notifications : '•' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,16 @@ const hideLabel = useHideBottomNavigationLabel()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtLink to="/search" :aria-label="$t('nav.search')" :active-class="activeClass" flex flex-col items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
<NuxtLink
|
||||||
<div i-ri:search-line />
|
to="/search"
|
||||||
|
:aria-label="$t('nav.search')"
|
||||||
|
:active-class="activeClass"
|
||||||
|
flex flex-col items-center place-content-center h-full flex-1
|
||||||
|
class="coarse-pointer:select-none"
|
||||||
|
:class="hideLabel ? null : 'gap-1'"
|
||||||
|
@click="$scrollToTop"
|
||||||
|
>
|
||||||
|
<div aria-hidden="true" i-ri:search-line />
|
||||||
<span v-if="!hideLabel" text-xs>{{ $t('nav.search') }}</span>
|
<span v-if="!hideLabel" text-xs>{{ $t('nav.search') }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue