fix(web): prevent photo-only memories showing mute button (#22802)

This commit is contained in:
Mees Frensel 2025-10-15 12:15:29 +02:00 committed by GitHub
parent 02beb85642
commit 72f5ca4420
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -403,16 +403,18 @@
</p> </p>
</div> </div>
<div class="w-[50px] dark"> {#if currentTimelineAssets.some(({ isVideo }) => isVideo)}
<IconButton <div class="w-[50px] dark">
shape="round" <IconButton
variant="ghost" shape="round"
color="secondary" variant="ghost"
aria-label={$videoViewerMuted ? $t('unmute_memories') : $t('mute_memories')} color="secondary"
icon={$videoViewerMuted ? mdiVolumeOff : mdiVolumeHigh} aria-label={$videoViewerMuted ? $t('unmute_memories') : $t('mute_memories')}
onclick={() => ($videoViewerMuted = !$videoViewerMuted)} icon={$videoViewerMuted ? mdiVolumeOff : mdiVolumeHigh}
/> onclick={() => ($videoViewerMuted = !$videoViewerMuted)}
</div> />
</div>
{/if}
</div> </div>
</ControlAppBar> </ControlAppBar>