Skip to content

Commit

Permalink
fix(theme): respect feature icon dimensions set from frontmatter
Browse files Browse the repository at this point in the history
closes #1886
  • Loading branch information
brc-dd committed Aug 6, 2023
1 parent d31051a commit 93823a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/client/theme-default/components/VPFeature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
<div v-else-if="icon" class="icon" v-html="icon"></div>
<h2 class="title" v-html="title"></h2>
Expand Down Expand Up @@ -60,8 +60,6 @@ defineProps<{
}
.VPFeature:deep(.VPImage) {
width: 48px;
height: 48px;
margin-bottom: 20px;
}
Expand Down

0 comments on commit 93823a8

Please sign in to comment.