Skip to content

Commit

Permalink
feat: Update image width in Gallery component to be 600px (#112)
Browse files Browse the repository at this point in the history
Changed the image width in the Gallery component to a fixed value of 600px
to improve consistency and layout aesthetics.
  • Loading branch information
nexmoe authored May 1, 2024
1 parent b99b87e commit 4b5837d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/module/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ const props = defineProps<Props>()
}"
>
<NuxtImg
class="w-full"
class="w-full h-full"
format="webp"
placeholder
:src="props.module!.image"
:alt="module.title"
referrerpolicy="no-referrer"
loading="lazy"
:width="`${module.imageWidth}px`"
:height="`${module.imageHeight}px`"
:width="`600px`"
/>
<div class="absolute bottom-0 left-0 px-5 pt-5 pb-4 bg-gradient-to-t from-black/35 to-transparent w-full">
<h3 class="drop-shadow-md text-white font-bold text-2xl tracking-tight">
Expand Down

0 comments on commit 4b5837d

Please sign in to comment.