Card pt fixes

pull/4004/head
Tuğçe Küçükoğlu 2023-05-30 11:30:17 +03:00
parent 9a0f329e2f
commit b4d059388d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<slot name="header"></slot>
</div>
<div :class="cx('body')" v-bind="ptm('body')">
<div v-if="$slots.title" :class="cx('title')">
<div v-if="$slots.title" :class="cx('title')" v-bind="ptm('title')">
<slot name="title"></slot>
</div>
<div v-if="$slots.subtitle" :class="cx('subtitle')" v-bind="ptm('subtitle')">

View File

@ -5,7 +5,7 @@
<div class="card flex align-items-center justify-content-center">
<Card style="width: 25em">
<template #header>
<img alt="user header" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/usercard.png" />
</template>
<template #title> Advanced Card </template>
<template #subtitle> Card subtitle </template>