Skip to content

Commit

Permalink
fix: changelist missing checkbox border
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed May 21, 2023
1 parent 1d6eb34 commit f89e7a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/unfold/templates/admin/actions.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load i18n %}

<div class="actions flex flex-col md:flex-row md:items-center">
<div class="actions flex flex-col mb-3 md:flex-row md:items-center lg:mb-0">
{% block actions %}
<div class="flex">
{% block actions-form %}
Expand Down
2 changes: 1 addition & 1 deletion src/unfold/templates/admin/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

{% block filters %}
{% if cl.has_filters %}
<label for="show-filters" id="changelist-filter-open" class="{% if cl.has_active_filters %}bg-primary-600 border-primary-600 text-white{% else %}bg-white text-gray-500 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:hover:text-gray-200 dark:text-gray-400{% endif %} border cursor-pointer flex font-medium group items-center mt-3 px-3 py-2 rounded-md shadow-sm text-sm md:ml-auto md:mt-0 lg:mt-0">
<label for="show-filters" id="changelist-filter-open" class="{% if cl.has_active_filters %}bg-primary-600 border-primary-600 text-white{% else %}bg-white text-gray-500 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:hover:text-gray-200 dark:text-gray-400{% endif %} border cursor-pointer flex font-medium group items-center px-3 py-2 rounded-md shadow-sm text-sm md:ml-auto md:mt-0">
{% trans "Filters" %}

<span class="material-symbols-outlined md-18 ml-auto -mr-1 pl-4 {% if cl.has_active_filters %}text-white{% else %}text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 dark:text-gray-500{% endif %}">filter_list</span>
Expand Down
2 changes: 2 additions & 0 deletions src/unfold/templatetags/unfold_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ def link_in_col(is_first: bool, field_name: str, cl: ChangeList) -> bool:
"before:content-[attr(data-label)]",
"before:mr-auto",
"before:text-gray-500",
"first:border-t-0",
"dark:before:text-gray-400",
"lg:before:hidden",
"lg:first:border-t",
"lg:py-3",
"lg:table-cell",
"dark:border-gray-800",
Expand Down

0 comments on commit f89e7a4

Please sign in to comment.