From 0e15937efdfb118097556745dae3117ec733b107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Tue, 17 Dec 2024 11:46:14 +0000 Subject: [PATCH 1/4] fix DateRangeFilter widget css --- theme/__init__.py | 2 +- theme/static/assets/css/surface.css | 12 +++++++++++- theme/templates/widgets/datetimepicker.html | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/theme/__init__.py b/theme/__init__.py index 10d0706..0138f30 100644 --- a/theme/__init__.py +++ b/theme/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.0.12' +__version__ = '0.0.13' # set default_app_config when using django earlier than 3.2 try: diff --git a/theme/static/assets/css/surface.css b/theme/static/assets/css/surface.css index 87c3609..76c80b7 100644 --- a/theme/static/assets/css/surface.css +++ b/theme/static/assets/css/surface.css @@ -195,6 +195,16 @@ ul li { position: relative; min-width: 0px; } + input[type=text].form-control { - width: 50%; + width: 50%; +} + +.vDateField.form-control { + line-height: unset !important; +} + +div.input-group-text.calendar-box { + max-height: 74% !important; + margin-left: -0.5rem; } diff --git a/theme/templates/widgets/datetimepicker.html b/theme/templates/widgets/datetimepicker.html index 8d56e2f..7251ee8 100644 --- a/theme/templates/widgets/datetimepicker.html +++ b/theme/templates/widgets/datetimepicker.html @@ -2,7 +2,7 @@
{% include "django/forms/widgets/input.html" %}
-
+
From 94527917cf2f7e870f3972218ab698f02c9c4aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Tue, 17 Dec 2024 11:55:29 +0000 Subject: [PATCH 2/4] removes new css --- theme/static/assets/css/surface.css | 7 ------- 1 file changed, 7 deletions(-) diff --git a/theme/static/assets/css/surface.css b/theme/static/assets/css/surface.css index 76c80b7..8d6d6f8 100644 --- a/theme/static/assets/css/surface.css +++ b/theme/static/assets/css/surface.css @@ -200,11 +200,4 @@ input[type=text].form-control { width: 50%; } -.vDateField.form-control { - line-height: unset !important; -} -div.input-group-text.calendar-box { - max-height: 74% !important; - margin-left: -0.5rem; -} From a5c3db75221f0c3c916fec37bc68a273dae69370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Tue, 17 Dec 2024 12:10:25 +0000 Subject: [PATCH 3/4] fix: date range filter css --- theme/static/assets/css/surface.css | 4 +--- theme/templates/rangefilter/date_filter.html | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/theme/static/assets/css/surface.css b/theme/static/assets/css/surface.css index 8d6d6f8..2196362 100644 --- a/theme/static/assets/css/surface.css +++ b/theme/static/assets/css/surface.css @@ -196,8 +196,6 @@ ul li { min-width: 0px; } -input[type=text].form-control { +input[type=text].form-control:not(#searchbar) { width: 50%; } - - diff --git a/theme/templates/rangefilter/date_filter.html b/theme/templates/rangefilter/date_filter.html index 2dc60e8..b122284 100644 --- a/theme/templates/rangefilter/date_filter.html +++ b/theme/templates/rangefilter/date_filter.html @@ -44,6 +44,9 @@ }); dt_input.find('input').addClass("form-control"); dt_input.css("height", "46px"); + dt_input.find('input').css("width", "unset"); + dt_input.find('input').parent().css("height", "100%"); + dt_input.find('.input-group-append').css("height", "100%"); }); }); From 4730c100d0ce27f4c3546546890f9c3f94cbb44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Pinto?= Date: Tue, 17 Dec 2024 12:13:45 +0000 Subject: [PATCH 4/4] fixup! fix: date range filter css --- theme/templates/widgets/datetimepicker.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/templates/widgets/datetimepicker.html b/theme/templates/widgets/datetimepicker.html index 7251ee8..8d56e2f 100644 --- a/theme/templates/widgets/datetimepicker.html +++ b/theme/templates/widgets/datetimepicker.html @@ -2,7 +2,7 @@
{% include "django/forms/widgets/input.html" %}
-
+