Remove unneeeded etail

This commit is contained in:
2025-12-10 17:02:57 +01:00
parent ca5ee547fd
commit 6b81a0f586

View File

@@ -989,7 +989,7 @@ function applyMediaSettings(element, asset) {
playPromise.catch(() => { playPromise.catch(() => {
if (!shouldMute && wasMuted) { if (!shouldMute && wasMuted) {
element.muted = true; element.muted = true;
element.play().catch(() => {}); element.play().catch(() => { });
} }
}); });
} }
@@ -1461,9 +1461,8 @@ function updateSelectedAssetSummary(asset) {
} }
if (selectedAssetMeta) { if (selectedAssetMeta) {
const baseMeta = asset ? `${Math.round(asset.width)}x${Math.round(asset.height)}` : null; const baseMeta = asset ? `${Math.round(asset.width)}x${Math.round(asset.height)}` : null;
const layerMeta = asset && !isAudioAsset(asset) ? ` · Layer ${asset.zIndex ?? 1}` : '';
selectedAssetMeta.textContent = asset selectedAssetMeta.textContent = asset
? `${baseMeta}${layerMeta}` ? `${baseMeta}`
: 'Pick an asset in the list to adjust its placement and playback.'; : 'Pick an asset in the list to adjust its placement and playback.';
} }
if (selectedAssetIdLabel) { if (selectedAssetIdLabel) {