From 3d8fbaa96650299c58289fca813751a34ff1b0d9 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 22 Sep 2015 11:55:40 -0700 Subject: [PATCH] Improvments to the dashboard view --- panoramix/templates/panoramix/dashboard.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/panoramix/templates/panoramix/dashboard.html b/panoramix/templates/panoramix/dashboard.html index ffef577b29910..5ea3560ea6a23 100644 --- a/panoramix/templates/panoramix/dashboard.html +++ b/panoramix/templates/panoramix/dashboard.html @@ -28,7 +28,7 @@ .gridster li { list-style-type: none; border: 1px solid gray; - overflow: auto; + overflow: hidden; box-shadow: 2px 2px 2px #AAA; border-radius: 5px; background-color: white; @@ -59,10 +59,14 @@ } table.widget_header { width: 100%; + height: 20px; } td.icons { width: 50px; } + td.icons nobr { + display: none; + } div.header { font-weight: bold; } @@ -100,15 +104,17 @@

- + + + +
{{ slice.slice_name }}
- + -
@@ -172,6 +178,12 @@

var li = $(this).parents("li"); gridster.remove_widget(li); }); + $("table.widget_header").mouseover(function(){ + $(this).find("td.icons nobr").show(); + }); + $("table.widget_header").mouseout(function(){ + $(this).find("td.icons nobr").hide(); + }); }); {% for slice in dashboard.slices %}