fix media in notifications not clickable

This commit is contained in:
Nolan Lawson 2018-04-05 18:18:23 -07:00
parent 57a40a4c41
commit b4fc6cf99e
3 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@
originalWidth: original => original && original.width,
originalHeight: original => original && original.height,
noNativeWidthHeight: (smallWidth, smallHeight) => typeof smallWidth !== 'number' || typeof smallHeight !== 'number',
delegateKey: (media) => `media-${media.id}`
delegateKey: (media, uuid) => `media-${uuid}-${media.id}`
},
methods: {
async onClickPlayVideoButton() {

View File

@ -1,7 +1,7 @@
<div class="status-media {{sensitive ? 'status-media-is-sensitive' : ''}}"
style="grid-template-columns: repeat(auto-fit, minmax({{maxMediaWidth}}px, 1fr));" >
{{#each mediaAttachments as media}}
<Media :media />
<Media :media :uuid />
{{/each}}
</div>
<style>

View File

@ -12,7 +12,7 @@
</svg>
</div>
</button>
<MediaAttachments :mediaAttachments :sensitive />
<MediaAttachments :mediaAttachments :sensitive :uuid />
{{else}}
<button type="button"
class="status-sensitive-media-button"
@ -31,7 +31,7 @@
{{/if}}
</div>
{{else}}
<MediaAttachments :mediaAttachments :sensitive />
<MediaAttachments :mediaAttachments :sensitive :uuid />
{{/if}}
<style>
.status-sensitive-media-container {