Skip to content

Commit

Permalink
fix: fix wrong label for "compose" nav button
Browse files Browse the repository at this point in the history
  • Loading branch information
shuuji3 committed Jan 4, 2025
1 parent 58c8aff commit 7ab0c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/nav/button/Compose.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const hideLabel = useHideBottomNavigationLabel()
<template>
<NuxtLink
to="/compose"
:aria-label="$t('nav.favourites')"
:aria-label="$t('nav.compose')"
:active-class="activeClass"
flex flex-col items-center place-content-center h-full flex-1 min-w-0
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 overflow-hidden text-ellipsis whitespace-nowrap>{{ $t('nav.favourites') }}</span>
<span v-if="!hideLabel" text-xs overflow-hidden text-ellipsis whitespace-nowrap>{{ $t('nav.compose') }}</span>
</NuxtLink>
</template>

0 comments on commit 7ab0c1e

Please sign in to comment.