moveComment
This commit is contained in:
parent
5e5f46f5ae
commit
f45be592e3
|
@ -54,10 +54,10 @@ function calcAspectRatio() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// アスペクト比上限設定では、横長の場合は高さを縮小させる
|
||||||
const ratioMax = (ratio: number) => `${Math.max(ratio, img.properties.width / img.properties.height).toString()} / 1`;
|
const ratioMax = (ratio: number) => `${Math.max(ratio, img.properties.width / img.properties.height).toString()} / 1`;
|
||||||
|
|
||||||
switch (defaultStore.state.mediaListWithOneImageAppearance) {
|
switch (defaultStore.state.mediaListWithOneImageAppearance) {
|
||||||
// アスペクト比上限設定では、横長の場合は高さを縮小させる
|
|
||||||
case '16_9':
|
case '16_9':
|
||||||
gallery.value.style.aspectRatio = ratioMax(16 / 9);
|
gallery.value.style.aspectRatio = ratioMax(16 / 9);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue