Grow image and its container with document height.

This commit is contained in:
Aaron van Geffen 2020-12-17 20:48:11 +01:00
parent 66a411973a
commit 6ddf518294
1 changed files with 8 additions and 3 deletions

View File

@ -173,11 +173,16 @@ body {
.crop_position input, .crop_position .btn { .crop_position input, .crop_position .btn {
margin: 0 5px; margin: 0 5px;
} }
.crop_image_container {
position: relative;
flex-grow: 1;
max-height: calc(100% - 34px);
}
.crop_image_container img { .crop_image_container img {
height: auto; border: 1px solid #000;
width: auto; max-height: 100%;
max-width: 100%; max-width: 100%;
max-height: 700px;
} }
#crop_boundary { #crop_boundary {
border: 1px dashed rgb(255, 255, 255); border: 1px dashed rgb(255, 255, 255);