From aefd639e58cfb148457d5ef711ad71a694c0127e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 2 Sep 2022 07:20:30 +0100 Subject: [PATCH] Add grid compact button --- core/templates/base.html | 2 +- core/templates/widgets/table_results.html | 2 +- core/templates/wm/panel.html | 2 +- core/templates/wm/widget.html | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/templates/base.html b/core/templates/base.html index f4344b0..7bd9dcb 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -200,7 +200,7 @@ background-color:rgba(250, 250, 250, 0.8) !important; } - .ui-close { + .float-right { float: right; } .grid-stack-item:hover .ui-resizable-handle { diff --git a/core/templates/widgets/table_results.html b/core/templates/widgets/table_results.html index fc290bc..1ae334f 100644 --- a/core/templates/widgets/table_results.html +++ b/core/templates/widgets/table_results.html @@ -11,7 +11,7 @@ {% block close_button %} {% endblock %} diff --git a/core/templates/wm/panel.html b/core/templates/wm/panel.html index 12cf31e..7f420b7 100644 --- a/core/templates/wm/panel.html +++ b/core/templates/wm/panel.html @@ -4,7 +4,7 @@ {% block close_button %} {% endblock %} {% block heading %} diff --git a/core/templates/wm/widget.html b/core/templates/wm/widget.html index 51951ea..738551e 100644 --- a/core/templates/wm/widget.html +++ b/core/templates/wm/widget.html @@ -7,9 +7,12 @@ {% block close_button %} + class="fa-solid fa-xmark has-text-grey-light float-right" + onclick='grid.removeWidget("drilldown-widget-{{ unique }}");'> {% endblock %} + {% block heading %} {% endblock %}