diff --git a/components/nav/button/Bookmark.vue b/components/nav/button/Bookmark.vue
index 80726e42..f6f8a037 100644
--- a/components/nav/button/Bookmark.vue
+++ b/components/nav/button/Bookmark.vue
@@ -1,14 +1,16 @@
- {{ $t('nav.bookmarks') }}
+ {{ $t('nav.bookmarks') }}
diff --git a/components/nav/button/Compose.vue b/components/nav/button/Compose.vue
index 4aa2e727..e18cec4e 100644
--- a/components/nav/button/Compose.vue
+++ b/components/nav/button/Compose.vue
@@ -3,12 +3,12 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
- {{ $t('nav.favourites') }}
+ {{ $t('nav.favourites') }}
diff --git a/components/nav/button/Explore.vue b/components/nav/button/Explore.vue
index 049f068a..53612036 100644
--- a/components/nav/button/Explore.vue
+++ b/components/nav/button/Explore.vue
@@ -8,6 +8,7 @@ defineProps<{
const lastAccessedExploreRoute = useLocalStorage(STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE, '')
const userSettings = useUserSettings()
+const hideLabel = computed(() => getPreferences(userSettings.value, 'hideBottomNavLabel'))
@@ -19,6 +20,6 @@ const userSettings = useUserSettings()
@click="$scrollToTop"
>
- {{ $t('nav.explore') }}
+ {{ $t('nav.explore') }}
diff --git a/components/nav/button/Favorite.vue b/components/nav/button/Favorite.vue
index 65ae7381..f61e47ac 100644
--- a/components/nav/button/Favorite.vue
+++ b/components/nav/button/Favorite.vue
@@ -3,12 +3,12 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
- {{ $t('nav.favourites') }}
+ {{ $t('nav.favourites') }}
diff --git a/components/nav/button/Federated.vue b/components/nav/button/Federated.vue
index 932a9b68..86679edf 100644
--- a/components/nav/button/Federated.vue
+++ b/components/nav/button/Federated.vue
@@ -1,14 +1,16 @@
- {{ $t('nav.federated') }}
+ {{ $t('nav.federated') }}
diff --git a/components/nav/button/Hashtag.vue b/components/nav/button/Hashtag.vue
index 28a126cd..e75e7f3e 100644
--- a/components/nav/button/Hashtag.vue
+++ b/components/nav/button/Hashtag.vue
@@ -3,12 +3,12 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
- {{ $t('nav.hashtags') }}
+ {{ $t('nav.hashtags') }}
diff --git a/components/nav/button/Home.vue b/components/nav/button/Home.vue
index 7853e4bb..cf9641e5 100644
--- a/components/nav/button/Home.vue
+++ b/components/nav/button/Home.vue
@@ -3,12 +3,12 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
- {{ $t('nav.home') }}
+ {{ $t('nav.home') }}
diff --git a/components/nav/button/List.vue b/components/nav/button/List.vue
index 72af3955..a892f5aa 100644
--- a/components/nav/button/List.vue
+++ b/components/nav/button/List.vue
@@ -1,9 +1,11 @@
@@ -15,6 +17,6 @@ const userSettings = useUserSettings()
class="coarse-pointer:select-none" @click="$scrollToTop"
>
- {{ $t('nav.lists') }}
+ {{ $t('nav.lists') }}
diff --git a/components/nav/button/Local.vue b/components/nav/button/Local.vue
index a27f8413..0502c51c 100644
--- a/components/nav/button/Local.vue
+++ b/components/nav/button/Local.vue
@@ -3,7 +3,7 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
@@ -15,6 +15,6 @@ const userSettings = useUserSettings()
@click="$scrollToTop"
>
- {{ $t('nav.local') }}
+ {{ $t('nav.local') }}
diff --git a/components/nav/button/Mention.vue b/components/nav/button/Mention.vue
index 82cba17e..1bc449c1 100644
--- a/components/nav/button/Mention.vue
+++ b/components/nav/button/Mention.vue
@@ -3,7 +3,7 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
@@ -14,6 +14,6 @@ const userSettings = useUserSettings()
@click="$scrollToTop"
>
- {{ $t('nav.conversations') }}
+ {{ $t('nav.conversations') }}
diff --git a/components/nav/button/MoreMenu.vue b/components/nav/button/MoreMenu.vue
index 3eba0df5..b544b78c 100644
--- a/components/nav/button/MoreMenu.vue
+++ b/components/nav/button/MoreMenu.vue
@@ -1,7 +1,7 @@
@@ -16,7 +16,7 @@ const userSettings = useUserSettings()
@click="toggleVisible"
>
- {{ $t('nav.more_menu') }}
+ {{ $t('nav.more_menu') }}
diff --git a/components/nav/button/Notification.vue b/components/nav/button/Notification.vue
index a5206d65..c6ba0933 100644
--- a/components/nav/button/Notification.vue
+++ b/components/nav/button/Notification.vue
@@ -1,4 +1,5 @@
@@ -18,6 +19,6 @@ const userSettings = useUserSettings()
{{ notifications < 10 ? notifications : '•' }}
- {{ $t('nav.notifications') }}
+ {{ $t('nav.notifications') }}
diff --git a/components/nav/button/Search.vue b/components/nav/button/Search.vue
index 353fddb0..6a358edd 100644
--- a/components/nav/button/Search.vue
+++ b/components/nav/button/Search.vue
@@ -3,12 +3,12 @@ defineProps<{
activeClass: string
}>()
-const userSettings = useUserSettings()
+const hideLabel = useHideBottomNavigationLabel()
- {{ $t('nav.search') }}
+ {{ $t('nav.search') }}
diff --git a/composables/settings/storage.ts b/composables/settings/storage.ts
index 0d2a92d9..14f27967 100644
--- a/composables/settings/storage.ts
+++ b/composables/settings/storage.ts
@@ -43,3 +43,8 @@ export function togglePreferences(key: keyof PreferencesSettings) {
const flag = usePreferences(key)
flag.value = !flag.value
}
+
+export function useHideBottomNavigationLabel() {
+ const userSettings = useUserSettings()
+ return computed(() => getPreferences(userSettings.value, 'hideBottomNavLabel'))
+}