mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Remove unneeeded etail
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user