Skip to content

Commit

Permalink
fix: proper filter close on click (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Oct 13, 2024
1 parent bc45918 commit b0a24c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unfold/templates/unfold/change_list_filter.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% load i18n admin_list %}

<div id="changelist-filter" class="backdrop-blur-sm bg-opacity-80 bg-gray-900 flex fixed inset-0 z-50" x-show="filterOpen">
<label for="show-filters" id="changelist-filter-close" class="flex-grow"></label>
<label for="show-filters" id="changelist-filter-close" class="flex-grow" x-on:click="filterOpen = false"></label>

<div class="bg-white flex mx-4 my-4 overflow-hidden rounded shadow-sm w-96 dark:bg-gray-800" x-on:click.outside="filterOpen = false">
<div class="bg-white flex mx-4 my-4 overflow-hidden rounded shadow-sm w-96 dark:bg-gray-800">
<div class="flex-grow h-full overflow-auto relative">
<h3 class="border-b flex font-semibold mb-6 px-6 py-4 text-font-important-light text-sm dark:text-font-important-dark dark:border-gray-700">
{% trans "Filter" %}
Expand Down

0 comments on commit b0a24c1

Please sign in to comment.