From: moisseev Date: Tue, 21 Jul 2020 10:08:16 +0000 (+0300) Subject: [WebUI] Set test selectors card height dynamically X-Git-Tag: 2.6~223^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44f9bb202d626f92deedf513d3b020a5f39ff0d6;p=rspamd.git [WebUI] Set test selectors card height dynamically and minor layout fixes. --- diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index e23071a96..18d758670 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -416,10 +416,17 @@ table#symbolsTable input[type="number"] { display: flex; flex-wrap: wrap; clear: both; - /* necessary to hide collapsed sidebar */ - overflow-x: hidden; + margin-left: -17.5px; + margin-right: -17.5px; } @media (min-width: 992px) { + #selectors > .card { + height: calc(100vh - 91px); + } + #row-main { + /* necessary to hide collapsed sidebar */ + overflow-x: hidden; + } #content > div { display: flex; } @@ -437,10 +444,6 @@ table#symbolsTable input[type="number"] { background-color: #ffe; transition: margin 0.3s ease; } -.sidebar > div.table-responsive { - max-height: 610px; - background-color: white; -} .collapsed { /* hide it for small displays */ display: none; @@ -485,6 +488,12 @@ table#symbolsTable input[type="number"] { transform: rotate(180deg); } @media (min-width: 992px) { + #sidebar-left { + border-bottom-left-radius: 3.5px; + } + #sidebar-right { + border-bottom-right-radius: 3.5px; + } .sidebar-nav { margin-left: -1px; margin-right: -1px; @@ -504,6 +513,10 @@ table#symbolsTable input[type="number"] { } } @media (max-width: 991.98px) { + #sidebar-right { + border-bottom-left-radius: 3.5px; + border-bottom-right-radius: 3.5px; + } .sidebar-nav { margin-top: -1px; margin-bottom: -1px; diff --git a/interface/index.html b/interface/index.html index 163de31aa..beb2651c9 100644 --- a/interface/index.html +++ b/interface/index.html @@ -338,28 +338,28 @@ Test Rspamd selectors
-
- -
+
-