Skip to content

Commit dbc330d

Browse files
authored
fix: changelist filter adjusted paddings (#1179)
1 parent 23c1fc1 commit dbc330d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/unfold/contrib/filters/templates/unfold/filters/filters_date_range.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex flex-col">
55
<h3 class="font-semibold mb-2 text-font-important-light dark:text-font-important-dark">{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
66

7-
<div class="flex flex-col space-y-4">
7+
<div class="flex flex-col space-y-2">
88
{% for field in choice.form %}
99
<div class="flex flex-row flex-wrap group relative{% if field.errors %} errors{% endif %}">
1010
{{ field }}

src/unfold/contrib/filters/templates/unfold/filters/filters_datetime_range.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex flex-col">
55
<h3 class="font-semibold mb-2 text-font-important-light dark:text-font-important-dark">{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
66

7-
<div class="flex flex-col space-y-4">
7+
<div class="flex flex-col space-y-2">
88
{% for field in choice.form %}
99
<div class="flex flex-row flex-wrap group relative{% if field.errors %} errors{% endif %}">
1010
{{ field }}

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/templates/unfold/helpers/change_list_filter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{% preserve_filters %}
1111
{% endif %}
1212

13-
<div class="flex flex-col grow gap-4 overflow-auto *:mb-0" data-simplebar data-simplebar-direction="rtl">
14-
<div class="flex flex-col gap-4 mx-1 px-2 py-2.5 {% if not cl.model_admin.list_filter_sheet %} 2xl:px-0 2xl:py-0{% endif %} *:mb-0">
13+
<div class="flex flex-col grow gap-4 overflow-auto *:mb-0 {% if not cl.model_admin.list_filter_sheet %}2xl:-mx-1{% endif %}" data-simplebar data-simplebar-direction="rtl">
14+
<div class="flex flex-col gap-4 px-3 py-2.5 {% if not cl.model_admin.list_filter_sheet %}2xl:pb-1 2xl:px-1 2xl:py-0{% endif %} *:mb-0">
1515
{% for spec in cl.filter_specs %}
1616
{% admin_list_filter cl spec %}
1717
{% endfor %}

0 commit comments

Comments
 (0)