nuxt-og-image 1.4.14 → 1.4.15

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
@@ -5,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "ogImage",
8
- "version": "1.4.14"
8
+ "version": "1.4.15"
9
9
  }
@@ -11,6 +11,7 @@ const props = defineProps({
11
11
  },
12
12
  background: {
13
13
  type: String,
14
+ default: 'linear-gradient(to bottom, #dbf4ff, #fff1f1)',
14
15
  },
15
16
  color: {
16
17
  type: String,
@@ -36,6 +37,7 @@ const containerAttrs = computed(() => {
36
37
  const classes = [
37
38
  'w-full',
38
39
  'h-full',
40
+ 'flex',
39
41
  'items-center',
40
42
  'justify-center',
41
43
  ]
@@ -45,8 +47,8 @@ const containerAttrs = computed(() => {
45
47
 
46
48
  if (isBackgroundTw)
47
49
  classes.push(props.background)
48
- else
49
- styles.backgroundColor = props.background
50
+ else if (props.background)
51
+ styles.background = props.background
50
52
 
51
53
  if (isColorTw)
52
54
  classes.push(props.color)
@@ -75,15 +77,13 @@ const descriptionAttrs = computed(() => {
75
77
  </script>
76
78
 
77
79
  <template>
78
- <div>
79
- <div v-bind="containerAttrs">
80
- <div class="flex flex-col">
81
- <div v-bind="titleAttrs">
82
- {{ title }}
83
- </div>
84
- <div v-bind="descriptionAttrs">
85
- {{ description }}
86
- </div>
80
+ <div v-bind="containerAttrs">
81
+ <div class="flex flex-col w-full">
82
+ <div v-bind="titleAttrs">
83
+ {{ title }}
84
+ </div>
85
+ <div v-bind="descriptionAttrs">
86
+ {{ description }}
87
87
  </div>
88
88
  </div>
89
89
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "1.4.14",
4
+ "version": "1.4.15",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",