From 5e1b402681b291b22f71a4eaa3697c6d8b339e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danyi=20D=C3=A1vid?= Date: Mon, 9 Jul 2018 17:10:29 +0200 Subject: [PATCH] * image display size fix --- .../gallery/display-image/display-image.component.css | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/gallery/display-image/display-image.component.css b/src/app/gallery/display-image/display-image.component.css index 6c9d208..10a6c0f 100644 --- a/src/app/gallery/display-image/display-image.component.css +++ b/src/app/gallery/display-image/display-image.component.css @@ -10,22 +10,19 @@ -webkit-transition: opacity 150ms ease-in; -moz-transition: opacity 150ms ease-in; transition: opacity 150ms ease-in; - height: 100%; - width: 100%; padding: 15px; overflow: hidden; } .modal-padding { - overflow: hidden; - max-height: calc(100% - 30px); - max-width: calc(100% - 30px); + height: 100%; + width: 100%; } .modal-container .image { display: block; margin-left: auto; margin-right: auto; - max-height: calc(100% - 30px); - width: auto; + max-height: 100%; + max-width: 100%; }