From 8ac8084a5b12e9fc728f9363477ede519f992328 Mon Sep 17 00:00:00 2001 From: mike <219478+ilude@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:57:55 -0400 Subject: [PATCH] add display_header option --- app/models/widget.py | 4 ++++ app/static/css/widgets.css | 4 +--- app/templates/widget.html | 7 ++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/models/widget.py b/app/models/widget.py index 15169fd..e10c90e 100644 --- a/app/models/widget.py +++ b/app/models/widget.py @@ -37,6 +37,10 @@ def type(self): def link(self): return self.widget.get('link', '') + @property + def display_header(self): + return self.widget.get('display_header', True) + @property def display_limit(self): return self.widget.get('display_limit', 10) diff --git a/app/static/css/widgets.css b/app/static/css/widgets.css index c94557c..7aab1a8 100644 --- a/app/static/css/widgets.css +++ b/app/static/css/widgets.css @@ -44,9 +44,7 @@ ul li:last-child { /* Content Boxes */ .box-content { - border-left: 0.063em solid #444; /* Rounded from 0.0625em */ - border-right: 0.063em solid #444; /* Rounded from 0.0625em */ - border-bottom: 0.063em solid #444; /* Rounded from 0.0625em */ + border: 0.063em solid #444; /* Rounded from 0.0625em */ } /* Scrollbar Styling */ diff --git a/app/templates/widget.html b/app/templates/widget.html index bb03783..18b7b6b 100644 --- a/app/templates/widget.html +++ b/app/templates/widget.html @@ -1,8 +1,9 @@ {% if not skip_htmx and widget.hasattr('hx_get') %}
- +
    {% set name = widget.name %} @@ -13,7 +14,7 @@
{% else %}