forked from cybrespace/pinafore
fix media in notifications not clickable
This commit is contained in:
parent
57a40a4c41
commit
b4fc6cf99e
|
@ -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() {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue