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

View file

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

View file

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