From 1cf93199d06701a6dcc5b843c932aa2b803bce57 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 1 May 2020 15:03:08 +0200 Subject: [PATCH] Adaptive dashboard widget height --- .../backend/http/static/css/source/dashboard/index.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/static/css/source/dashboard/index.scss b/platypush/backend/http/static/css/source/dashboard/index.scss index 79f7e82f..0784bcca 100644 --- a/platypush/backend/http/static/css/source/dashboard/index.scss +++ b/platypush/backend/http/static/css/source/dashboard/index.scss @@ -30,10 +30,11 @@ main { display: flex; flex-flow: column; width: 100%; - height: 100%; + height: 100vh; margin: 0; .widgets-row { + height: calc(50% - 3em); margin: 2em 1em; display: flex; } @@ -41,9 +42,13 @@ main { .widget { background: $background-color; border-radius: 5px; - height: 22.5em; + height: 100%; overflow: hidden; box-shadow: 0 3px 3px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08); } } +#widgets-container { + height: 100%; +} +