Skip to content

Commit

Permalink
chore: aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed May 1, 2024
1 parent 4750e77 commit b99b87e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/module/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ const props = defineProps<Props>()
</div>
<div
v-if="props.module.image"
class="min-h-[68px] shadow-sm border rounded-2xl relative overflow-hidden"
class="shadow-sm border rounded-2xl relative overflow-hidden"
:style="{
aspectRatio: `${module.imageWidth}/${module.imageHeight}`,
}"
>
<NuxtImg
class="w-full"
format="webp"
placeholder
placeholder
:src="props.module!.image"
:alt="module.title"
referrerpolicy="no-referrer"
Expand Down

0 comments on commit b99b87e

Please sign in to comment.