Skip to content

Commit

Permalink
fix(Card): prevent body padding without default slot
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 8, 2024
1 parent f5fa9fe commit f682905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/layout/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div v-if="$slots.header" :class="[ui.header.base, ui.header.padding, ui.header.background]">
<slot name="header" />
</div>
<div :class="[ui.body.base, ui.body.padding, ui.body.background]">
<div v-if="$slots.default" :class="[ui.body.base, ui.body.padding, ui.body.background]">
<slot />
</div>
<div v-if="$slots.footer" :class="[ui.footer.base, ui.footer.padding, ui.footer.background]">
Expand Down

0 comments on commit f682905

Please sign in to comment.