From 93823a8566df22c57cb4fbc81fa65c34222ece5e Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 6 Aug 2023 23:36:40 +0530 Subject: [PATCH] fix(theme): respect feature icon dimensions set from frontmatter closes #1886 --- src/client/theme-default/components/VPFeature.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/theme-default/components/VPFeature.vue b/src/client/theme-default/components/VPFeature.vue index 2881e143e63f..cb97c36bb246 100644 --- a/src/client/theme-default/components/VPFeature.vue +++ b/src/client/theme-default/components/VPFeature.vue @@ -21,8 +21,8 @@ defineProps<{ v-if="typeof icon === 'object'" :image="icon" :alt="icon.alt" - :height="icon.height" - :width="icon.width" + :height="icon.height || 48" + :width="icon.width || 48" />

@@ -60,8 +60,6 @@ defineProps<{ } .VPFeature:deep(.VPImage) { - width: 48px; - height: 48px; margin-bottom: 20px; }