Merged in feat/SW-2039-move-fullview-caption (pull request #2543)

feat(SW-2039): move fullview image caption from bottom to the top of image

* feat(SW-2039): move fullview image caption to the top


Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-07-10 07:42:38 +00:00
parent 233c685e52
commit 5f9af2701e
2 changed files with 16 additions and 17 deletions

View File

@@ -88,6 +88,11 @@ export default function FullView({
drag="x"
onDragEnd={(_e, info) => handleSwipe(info.offset.x)}
>
{image.caption && !hideLabel ? (
<Typography variant="Body/Paragraph/mdRegular">
<p className={styles.imageCaption}>{image.caption}</p>
</Typography>
) : null}
<Image
alt={image.alt}
fill
@@ -95,12 +100,6 @@ export default function FullView({
src={image.src}
className={styles.image}
/>
{image.caption && !hideLabel ? (
<Typography variant="Body/Paragraph/mdRegular">
<p className={styles.footer}>{image.caption}</p>
</Typography>
) : null}
</motion.div>
</AnimatePresence>
</div>