Skip to content

Commit 4d97c78

Browse files
Fix minor Card/CardGroup issues, + package update
Signed-off-by: Anatoli Nicolae <an@thundersquared.com>
1 parent fad3e88 commit 4d97c78

File tree

5 files changed

+292
-292
lines changed

5 files changed

+292
-292
lines changed

demo/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Warning raises a warning to watch out for `python`
110110
Here is a card with a duotone yellow icon
111111
</Card>
112112

113-
<CardGroup cols="2">
113+
<CardGroup :cols="2">
114114
<Card title="First Card" icon="envelope" color="#ea5a0c" href="#">
115115
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
116116
</Card>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"@mdit-vue/types": "^0.12.0",
5353
"@types/body-scroll-lock": "^3.1.0",
5454
"@types/estree": "^1.0.1",
55-
"@types/node": "^20.4.0",
55+
"@types/node": "^20.4.4",
5656
"prettier": "^3.0.0",
5757
"typescript": "^5.1.6",
58-
"vitepress": "1.0.0-beta.5",
58+
"vitepress": "1.0.0-beta.6",
5959
"vue": "^3.3.4"
6060
},
6161
"peerDependencies": {

src/components/Card.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const tag = computed(() => props.href ? 'a' : 'div')
1919
<FontAwesomeIcon :icon="props.icon"></FontAwesomeIcon>
2020
</div>
2121
<h3 class="card-title">{{ props.title }}</h3>
22-
<span class="card-body">
22+
<div class="card-body">
2323
<slot></slot>
24-
</span>
24+
</div>
2525
</component>
2626
</template>
2727

28-
<style scoped>
28+
<style>
2929
.card {
3030
--vp-c-brand: initial;
3131
border: 1px solid var(--vp-custom-block-info-border);

src/components/CardGroup.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script lang="ts" setup>
2-
defineProps<{
2+
defineProps({
33
cols: {
4-
type: number,
4+
type: Number,
55
default: 2,
66
required: false
77
}
8-
}>()
8+
})
99
</script>
1010

1111
<template>

0 commit comments

Comments
 (0)