Skip to content

Commit

Permalink
Fix oh-image-card action regression (#2795)
Browse files Browse the repository at this point in the history
Regression from #2781.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Oct 3, 2024
1 parent 2c28db9 commit d6c8904
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<template>
<oh-card :context="context" :content-class="['oh-image-card', 'no-padding']">
<template #content>
<oh-image class="oh-image" :context="childContext(context.component)" />
<template #content-root>
<f7-card-content :style="config.contentStyle" :class="[ ...(Array.isArray(config.contentClass) ? config.contentClass : []), 'oh-image-card']">
<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)" />
</f7-list-item>
</f7-list>
<oh-image v-else :context="childContext(context.component)" />
</f7-card-content>
</template>
</oh-card>
</template>
Expand All @@ -15,6 +22,13 @@
margin-left 5px
margin-right 5px
width calc(100% - 10px)
.image-link
.item-content
padding 0
.item-inner
display none
.oh-image
margin-bottom 5px
</style>

<script>
Expand Down

0 comments on commit d6c8904

Please sign in to comment.