Skip to content

Commit 243135e

Browse files
committed
Center cropper-canvas.
Fix, if the image on a side has a large dimension that a white area is displayed at the top and/or bottom
1 parent 58dce4d commit 243135e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

wcfsetup/install/files/style/ui/dialog.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,13 @@ html[data-color-scheme="dark"] .dialog::backdrop {
465465
min-width: 0;
466466
}
467467
}
468+
469+
.dialog cropper-canvas {
470+
margin-left: auto;
471+
margin-right: auto;
472+
}
473+
474+
/* If the height of the image is many times greater than the width, a white area would be displayed at the bottom and/or top. */
475+
.dialog cropper-shade {
476+
outline-width: max(100vh, 100vw) !important;
477+
}

0 commit comments

Comments
 (0)