Skip to content

Commit 41e8a85

Browse files
committed
ui: add spacing to footer brand
1 parent a9189ae commit 41e8a85

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/runtime/components/app/AppFooter.vue

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
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
55
const nuxtifyConfig = useNuxtifyConfig()
66
77
// Navigation
88
const footerPrimaryLinks = nuxtifyConfig.navigation?.altPrimary
99
const 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"

0 commit comments

Comments
 (0)