fix: contain project media layouts

This commit is contained in:
2026-09-04 21:48:51 +03:00
parent 9cec17e139
commit 8f358c2e0d
5 changed files with 117 additions and 25 deletions

View File

@@ -11,11 +11,15 @@ withDefaults(defineProps<{
<template>
<div v-if="media.length > 0" class="project-media-gallery" :data-media-layout="layout">
<ProjectMedia
<div
v-for="presentation in media"
:key="`${presentation.kind}-${presentation.assetId}`"
:presentation="presentation"
:allow-automatic-video="allowAutomaticVideo"
/>
class="project-media-gallery__item"
>
<ProjectMedia
:presentation="presentation"
:allow-automatic-video="allowAutomaticVideo"
/>
</div>
</div>
</template>