Skip to content

Commit 4e3eb01

Browse files
authored
fix: dataset actions styling (#1629)
1 parent 68004a2 commit 4e3eb01

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/unfold/forms.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ class ActionForm(forms.Form):
5353
{
5454
"class": " ".join(
5555
[
56-
"appearance-none",
57-
"!bg-white/20",
58-
"font-medium",
59-
"grow",
60-
"px-3",
61-
"py-2",
62-
"pr-8",
63-
"rounded-default",
64-
"!text-current",
65-
"truncate",
66-
"!outline-primary-400",
67-
"dark:!outline-primary-700",
68-
"*:text-base-700",
69-
"lg:w-72",
56+
"group-[.changelist-actions]:appearance-none",
57+
"group-[.changelist-actions]:!bg-white/20",
58+
"group-[.changelist-actions]:font-medium",
59+
"group-[.changelist-actions]:grow",
60+
"group-[.changelist-actions]:px-3",
61+
"group-[.changelist-actions]:py-2",
62+
"group-[.changelist-actions]:pr-8",
63+
"group-[.changelist-actions]:rounded-default",
64+
"group-[.changelist-actions]:!text-current",
65+
"group-[.changelist-actions]:truncate",
66+
"group-[.changelist-actions]:!outline-primary-400",
67+
"group-[.changelist-actions]:dark:!outline-primary-700",
68+
"group-[.changelist-actions]:*:text-base-700",
69+
"group-[.changelist-actions]:lg:w-72",
7070
]
7171
),
7272
"aria-label": _("Select action to run"),

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_actions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% if actions_on_top %}
44
{% if cl.search_fields or action_form or cl.has_filters %}
55
<div class="bottom-0 left-0 right-0 hidden bg-primary-600 group-has-[input.action-select:checked]:flex fixed gap-3 lg:h-[64px] items-center p-3 z-50 lg:flex-row dark:bg-primary-500">
6-
<div id="changelist-actions-wrapper" class="grow" {% if not is_popup %}x-bind:class="{'xl:ml-0': !sidebarDesktopOpen, 'xl:ml-72': sidebarDesktopOpen}"{% endif %}>
6+
<div id="changelist-actions-wrapper" class="grow group changelist-actions" {% if not is_popup %}x-bind:class="{'xl:ml-0': !sidebarDesktopOpen, 'xl:ml-72': sidebarDesktopOpen}"{% endif %}>
77
{% if action_form %}
88
{% admin_actions %}
99
{% endif %}

0 commit comments

Comments
 (0)