Revert "fix?"

This reverts commit e39d832dd1.
This commit is contained in:
tamaina 2023-04-12 13:49:38 +00:00
parent e39d832dd1
commit 9cb4fbfd96
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ function calcAspectRatio() {
let img = props.mediaList[0]; let img = props.mediaList[0];
if (props.mediaList.length !== 1 || !(img.properties.width && img.properties.height)) { if (!(img.properties.width && img.properties.height)) {
gallery.value.style.aspectRatio = ''; gallery.value.style.aspectRatio = '';
return; return;
} }
@ -57,7 +57,7 @@ function calcAspectRatio() {
switch (defaultStore.state.mediaListWithOneImageAppearance) { switch (defaultStore.state.mediaListWithOneImageAppearance) {
// //
case '16_9': case '16_9':
gallery.value.style.aspectRatio = Math.max(16 / 9, img.properties.width / img.properties.height).toString() + '/1'; gallery.value.style.aspectRatio = Math.max(16 / 9, img.properties.width / img.properties.height).toString();
break; break;
default: default:
gallery.value.style.aspectRatio = ''; gallery.value.style.aspectRatio = '';