From 6ddf518294c6c9c43c7b01b60785308c6a2fd65c Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 17 Dec 2020 20:48:11 +0100 Subject: [PATCH] Grow image and its container with document height. --- public/css/admin.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/css/admin.css b/public/css/admin.css index d1db4e5..f3f3b90 100644 --- a/public/css/admin.css +++ b/public/css/admin.css @@ -173,11 +173,16 @@ body { .crop_position input, .crop_position .btn { margin: 0 5px; } + +.crop_image_container { + position: relative; + flex-grow: 1; + max-height: calc(100% - 34px); +} .crop_image_container img { - height: auto; - width: auto; + border: 1px solid #000; + max-height: 100%; max-width: 100%; - max-height: 700px; } #crop_boundary { border: 1px dashed rgb(255, 255, 255);