parent
37d3cac7d2
commit
482ee3d3bb
|
@ -1,18 +1,22 @@
|
|||
{#if media.length}
|
||||
<div class="compose-media-container" style="grid-template-columns: repeat({media.length}, 1fr);">
|
||||
<ul class="compose-media-container"
|
||||
aria-label="Media uploads"
|
||||
style="grid-template-columns: repeat({media.length}, 1fr);"
|
||||
>
|
||||
{#each media as mediaItem, index}
|
||||
<ComposeMediaItem {realm} {mediaItem} {index} {media} />
|
||||
{/each}
|
||||
</div>
|
||||
</ul>
|
||||
{/if}
|
||||
<style>
|
||||
.compose-media-container {
|
||||
grid-area: media;
|
||||
list-style: none;
|
||||
display: grid;
|
||||
grid-column-gap: 5px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
margin: 10px 0 0 0;
|
||||
background: var(--form-bg);
|
||||
padding: 5px;
|
||||
border-radius: 4px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="compose-media compose-media-realm-{realm}">
|
||||
<li class="compose-media compose-media-realm-{realm}">
|
||||
<img src={mediaItem.data.preview_url} {alt} />
|
||||
<div class="compose-media-delete">
|
||||
<button class="compose-media-delete-button"
|
||||
|
@ -18,9 +18,11 @@
|
|||
Describe {shortName} for the visually impaired
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<style>
|
||||
.compose-media {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 200px;
|
||||
overflow: hidden;
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Reference in New Issue