pinafore/routes/_components/compose/ComposeMedia.html
Nolan Lawson 42be854521
upgrade to svelte 2.0 (#251)
* upgrade to svelte 2.0

* update svelte-loader to 2.9.0
2018-05-01 17:05:36 -07:00

31 lines
741 B
HTML

{#if media.length}
<div class="compose-media-container" style="grid-template-columns: repeat({media.length}, 1fr);">
{#each media as mediaItem, index}
<ComposeMediaItem {realm} {mediaItem} {index} {mediaDescriptions} />
{/each}
</div>
{/if}
<style>
.compose-media-container {
grid-area: media;
display: grid;
grid-column-gap: 5px;
align-items: center;
justify-content: center;
margin-top: 10px;
background: var(--form-bg);
padding: 5px;
border-radius: 4px;
}
</style>
<script>
import { store } from '../../_store/store'
import ComposeMediaItem from './ComposeMediaItem.html'
export default {
store: () => store,
components: {
ComposeMediaItem
}
}
</script>