File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
src/runtime/components/app Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { mdiArrowTopRight , useNuxtifyConfig } from ' #imports'
2+ import { computed , mdiArrowTopRight , useNuxtifyConfig } from ' #imports'
33
4- // App state
4+ // STATE - GLOBAL
55const nuxtifyConfig = useNuxtifyConfig ()
66
77// Navigation
88const footerPrimaryLinks = nuxtifyConfig .navigation ?.altPrimary
99const footerSecondaryLinks = nuxtifyConfig .navigation ?.altSecondary
10+
11+ // COMPUTED
12+ const brandColWidth = computed (() => {
13+ if (! footerPrimaryLinks ) {
14+ return 12
15+ }
16+ else if (footerPrimaryLinks ?.length >= 4 ) {
17+ return 4
18+ }
19+ return 6
20+ })
1021 </script >
1122
1223<template >
@@ -21,7 +32,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary
2132 <!-- Brand -->
2233 <v-col
2334 cols =" 12"
24- :lg =" footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 3 : 4 "
35+ :lg =" brandColWidth "
2536 >
2637 <!-- Logo -->
2738 <AppLogo dark />
@@ -35,7 +46,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary
3546 <v-spacer />
3647
3748 <!-- Primary Links -->
38- <v-col :lg =" footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 9 : 8 " >
49+ <v-col :lg =" 12 - brandColWidth " >
3950 <v-row >
4051 <v-col
4152 v-for =" group in footerPrimaryLinks"
You can’t perform that action at this time.
0 commit comments