fix media in notifications not clickable
This commit is contained in:
parent
57a40a4c41
commit
b4fc6cf99e
|
@ -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() {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue