Skip to content

Commit

Permalink
fix column images
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Jul 30, 2024
1 parent 1c53100 commit 03ed92f
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions components/blocks/Columns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,27 @@ defineProps<{
<BlocksButtonGroup v-if="row?.button_group" :data="row?.button_group as BlockButtonGroup" class="mt-4" />
</div>
<div
class="order-first block w-full overflow-hidden border aspect-square dark:border-gray-700 rounded-card"
v-if="row.image"
v-motion
class="order-first block w-full h-full overflow-hidden border dark:border-gray-700 rounded-card"
:initial="{ opacity: 0, scale: 0.5, y: 0 }"
:visibleOnce="{ opacity: 1, scale: 1, y: 0 }"
:duration="1000"
:delay="250"
:class="[
{
'lg:order-last': row?.image_position === 'right',
'lg:order-first': row?.image_position === 'left',
},
]"
>
<div
v-motion
:initial="{ opacity: 0, scale: 0.8, y: 50 }"
:visibleOnce="{ opacity: 1, scale: 1, y: 0 }"
:duration="1000"
:delay="250"
>
<NuxtImg
v-if="row.image"
:alt="safeRelation(row.image)?.description ?? ''"
:src="safeRelationId(row.image) ?? ''"
class="object-cover object-center w-full h-full bg-gray-100 rounded-card dark:brightness-90"
/>
</div>
<NuxtImg
:alt="safeRelation(row.image)?.description ?? ''"
:src="safeRelationId(row.image) ?? ''"
height="600"
width="600"
class="object-cover object-center w-full h-full bg-gray-100 rounded-card dark:brightness-90"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 03ed92f

Please sign in to comment.