From d8b96db1b709bd3e3b11718b5bb39f763d922429 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 6 Dec 2021 11:14:18 +0100 Subject: [PATCH] [IMP] runbot: limited height on tiles --- runbot/static/src/css/runbot.scss | 25 +++++++++++++++++++++++++ runbot/templates/dashboard.xml | 9 +++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/runbot/static/src/css/runbot.scss b/runbot/static/src/css/runbot.scss index 020edecc..88e6f784 100644 --- a/runbot/static/src/css/runbot.scss +++ b/runbot/static/src/css/runbot.scss @@ -228,3 +228,28 @@ body, .table{ padding: 0; } } +.limited-height { + max-height: 180px; + overflow: scroll; + + >hr { + margin: 2px 0px; + } + &:before { + content:''; + width:100%; + height:30px; + position:absolute; + left:0; + bottom:0; + background:linear-gradient(transparent 0px, white 27px); + } + -ms-overflow-style: none; + scrollbar-width: none; +} +.limited-height::-webkit-scrollbar { + display: none; +} +.limited-height-toggle:hover { + background-color: #DDD; +} diff --git a/runbot/templates/dashboard.xml b/runbot/templates/dashboard.xml index 837ae1c9..e2abd552 100644 --- a/runbot/templates/dashboard.xml +++ b/runbot/templates/dashboard.xml @@ -185,12 +185,12 @@