Skip to content

Commit

Permalink
fix: image preview should justify-center (#2062)
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin committed May 5, 2023
1 parent eebe578 commit 0034b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/modal/ModalMediaPreviewCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const distanceY = computed(() => {
<template>
<div ref="target" flex flex-row max-h-full max-w-full overflow-hidden>
<div flex :style="{ transform: `translateX(${distanceX}%) translateY(${distanceY}%)`, transition: isSwiping ? 'none' : canAnimate ? 'all 0.5s ease' : 'none' }">
<div v-for="item in media" :key="item.id" p4 select-none w-full flex-shrink-0 flex flex-col place-items-center>
<div v-for="item in media" :key="item.id" p4 select-none w-full flex-shrink-0 flex flex-col items-center justify-center>
<img max-h-full max-w-full :draggable="false" select-none :src="item.url || item.previewUrl" :alt="item.description || ''">
</div>
</div>
Expand Down

0 comments on commit 0034b22

Please sign in to comment.