2018-03-03 22:51:48 +00:00
|
|
|
{{#if media.length}}
|
|
|
|
<div class="compose-media-container" style="grid-template-columns: repeat({{media.length}}, 1fr);">
|
2018-04-10 01:30:15 +00:00
|
|
|
{{#each media as mediaItem, index}}
|
|
|
|
<ComposeMediaItem :realm :mediaItem :index :mediaDescriptions />
|
2018-03-02 05:21:49 +00:00
|
|
|
{{/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'
|
2018-04-10 01:30:15 +00:00
|
|
|
import ComposeMediaItem from './ComposeMediaItem.html'
|
2018-03-02 05:21:49 +00:00
|
|
|
|
|
|
|
export default {
|
2018-03-03 05:55:04 +00:00
|
|
|
store: () => store,
|
2018-04-10 01:30:15 +00:00
|
|
|
components: {
|
|
|
|
ComposeMediaItem
|
2018-03-03 05:55:04 +00:00
|
|
|
}
|
2018-03-02 05:21:49 +00:00
|
|
|
}
|
|
|
|
</script>
|