oh-image-card: Fix inconsistent image size when action is defined (#3046)

Fixes #3002.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit a7cc8f762c)
4.3.x
jimtng 2025-02-15 21:58:53 +10:00 committed by Florian Hotze
parent aec6aaad39
commit 8b80f8ebe7
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<oh-card :context="context" :content-class="['oh-image-card', 'no-padding']">
<template #content-root>
<f7-card-content :style="config.contentStyle" :class="[ ...(Array.isArray(config.contentClass) ? config.contentClass : []), 'oh-image-card', (config.action ? '' : 'no-padding')]">
<f7-card-content :style="config.contentStyle" :class="[ ...(Array.isArray(config.contentClass) ? config.contentClass : []), 'oh-image-card', 'no-padding']">
<f7-list v-if="config.action" class="image-link">
<f7-list-item class="oh-image-clickable" link="#" no-chevron @click="performAction">
<oh-image slot="content-start" :context="childContext(context.component)" />
@ -29,6 +29,9 @@
display none
.oh-image
margin-bottom 5px
.card
.list
margin 0 !important
</style>
<script>