Skip to content

Commit

Permalink
Revert "fix?"
Browse files Browse the repository at this point in the history
This reverts commit e39d832.
  • Loading branch information
tamaina committed Apr 12, 2023
1 parent e39d832 commit 9cb4fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkMediaList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ function calcAspectRatio() {
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 = '';
return;
}
switch (defaultStore.state.mediaListWithOneImageAppearance) {
// アスペクト比上限設定では、横長の場合は高さを縮小させる
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;
default:
gallery.value.style.aspectRatio = '';
Expand Down

0 comments on commit 9cb4fbf

Please sign in to comment.