commit: 7d13f38d8807fb090397af159b485a195c379fb3
parent f54fcda887531f4677e213e09f8de4df744e4bee
Author: Henry Jameson <me@hjkos.com>
Date: Fri, 12 Aug 2022 01:26:19 +0300
limit amount of pins on desktop to 6 (for now)
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue
@@ -5,7 +5,7 @@
v-if="!forceExpand"
class="panel-heading"
>
- <NavigationPins />
+ <NavigationPins :limit="6" />
<div class="spacer"/>
<button
class="button-unstyled"
diff --git a/src/components/navigation/navigation_pins.js b/src/components/navigation/navigation_pins.js
@@ -28,6 +28,7 @@ library.add(
faList
)
const NavPanel = {
+ props: ['limit'],
computed: {
getters () {
return this.$store.getters
@@ -67,7 +68,7 @@ const NavPanel = {
isPrivate: this.privateMode,
currentUser: this.currentUser
}
- )
+ ).slice(0, this.limit)
}
}
}