From 5d756707ab665b5aabb17bfd9d5af996507d770d Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Mon, 5 Feb 2018 19:18:20 +0100 Subject: [PATCH] dashlist: scroll fix when no header The first item in the dashlist has a margin that messes up the height calculation for the scroll bar when the Show headings option is not selected. This fix adds a margin-top set to 0 for the 1st item in the list in this case. This prevents a scrollbar being shown incorrectly. Fixes #10772 --- public/app/plugins/panel/dashlist/module.html | 2 +- public/sass/components/_panel_dashlist.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/panel/dashlist/module.html b/public/app/plugins/panel/dashlist/module.html index 8fa3e7ef71f..586e7f7d097 100644 --- a/public/app/plugins/panel/dashlist/module.html +++ b/public/app/plugins/panel/dashlist/module.html @@ -4,7 +4,7 @@ {{group.header}}
- + {{dash.title}} diff --git a/public/sass/components/_panel_dashlist.scss b/public/sass/components/_panel_dashlist.scss index 09ad4208099..5d100c7421c 100644 --- a/public/sass/components/_panel_dashlist.scss +++ b/public/sass/components/_panel_dashlist.scss @@ -21,4 +21,8 @@ .fa-star { color: $orange; } + + &--no-margintop { + margin-top: 0; + } }