@nuxtify/pages 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "configKey": "nuxtifyPages",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.16.0",
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, useLogger, installModule, addLayout,
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@nuxtify/pages";
5
- const version = "0.4.4";
5
+ const version = "0.4.5";
6
6
 
7
7
  const module = defineNuxtModule({
8
8
  meta: {
@@ -1,8 +1,16 @@
1
1
  <script setup>
2
- import { mdiArrowTopRight, useNuxtifyConfig } from "#imports";
2
+ import { computed, mdiArrowTopRight, useNuxtifyConfig } from "#imports";
3
3
  const nuxtifyConfig = useNuxtifyConfig();
4
4
  const footerPrimaryLinks = nuxtifyConfig.navigation?.altPrimary;
5
5
  const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
6
+ const brandColWidth = computed(() => {
7
+ if (!footerPrimaryLinks) {
8
+ return 12;
9
+ } else if (footerPrimaryLinks?.length >= 4) {
10
+ return 4;
11
+ }
12
+ return 6;
13
+ });
6
14
  </script>
7
15
 
8
16
  <template>
@@ -17,7 +25,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
17
25
  <!-- Brand -->
18
26
  <v-col
19
27
  cols="12"
20
- :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 3 : 4"
28
+ :lg="brandColWidth"
21
29
  >
22
30
  <!-- Logo -->
23
31
  <AppLogo dark />
@@ -31,7 +39,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary;
31
39
  <v-spacer />
32
40
 
33
41
  <!-- Primary Links -->
34
- <v-col :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 9 : 8">
42
+ <v-col :lg="12 - brandColWidth">
35
43
  <v-row>
36
44
  <v-col
37
45
  v-for="group in footerPrimaryLinks"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtify/pages",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Nuxtify pages module powered by Nuxt and Vuetify.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuxtify.dev",