Skip to content

Commit 93823a8

Browse files
committedAug 6, 2023
fix(theme): respect feature icon dimensions set from frontmatter
closes #1886
1 parent d31051a commit 93823a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎src/client/theme-default/components/VPFeature.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defineProps<{
2121
v-if="typeof icon === 'object'"
2222
:image="icon"
2323
:alt="icon.alt"
24-
:height="icon.height"
25-
:width="icon.width"
24+
:height="icon.height || 48"
25+
:width="icon.width || 48"
2626
/>
2727
<div v-else-if="icon" class="icon" v-html="icon"></div>
2828
<h2 class="title" v-html="title"></h2>
@@ -60,8 +60,6 @@ defineProps<{
6060
}
6161
6262
.VPFeature:deep(.VPImage) {
63-
width: 48px;
64-
height: 48px;
6563
margin-bottom: 20px;
6664
}
6765

0 commit comments

Comments
 (0)
Please sign in to comment.