Skip to content

Commit

Permalink
Center cropper-canvas.
Browse files Browse the repository at this point in the history
Fix, if the image on a side has a large dimension that a white area is displayed at the top and/or bottom
  • Loading branch information
Cyperghost committed Dec 9, 2024
1 parent 58dce4d commit 243135e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wcfsetup/install/files/style/ui/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,13 @@ html[data-color-scheme="dark"] .dialog::backdrop {
min-width: 0;
}
}

.dialog cropper-canvas {
margin-left: auto;
margin-right: auto;
}

/* 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. */
.dialog cropper-shade {
outline-width: max(100vh, 100vw) !important;
}

0 comments on commit 243135e

Please sign in to comment.