fix(theme): respect feature icon dimensions set from frontmatter

closes #1886
pull/2744/head
Divyansh Singh 1 year ago
parent d31051a051
commit 93823a8566

@ -21,8 +21,8 @@ defineProps<{
v-if="typeof icon === 'object'" v-if="typeof icon === 'object'"
:image="icon" :image="icon"
:alt="icon.alt" :alt="icon.alt"
:height="icon.height" :height="icon.height || 48"
:width="icon.width" :width="icon.width || 48"
/> />
<div v-else-if="icon" class="icon" v-html="icon"></div> <div v-else-if="icon" class="icon" v-html="icon"></div>
<h2 class="title" v-html="title"></h2> <h2 class="title" v-html="title"></h2>
@ -60,8 +60,6 @@ defineProps<{
} }
.VPFeature:deep(.VPImage) { .VPFeature:deep(.VPImage) {
width: 48px;
height: 48px;
margin-bottom: 20px; margin-bottom: 20px;
} }

Loading…
Cancel
Save