Skip to content

Commit 73fd2e5

Browse files
authored
Fix page being blank on small screens due to table filters (#4525)
There seems to be an extra fixed DOM element present that activates only on small screens and takes over the whole screen; nothing is visible on the page if there is a table rendered with the new table filter code. This PR removes the extra style at the table filter top level wrapper and also adds some gap between two filter items in the button form. Here is the original image:
1 parent 74a3996 commit 73fd2e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hypha/apply/funds/templates/funds/includes/table_filter_and_search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2 class="mb-2 text-xl">{{ heading }}</h2>
5151
</div>
5252
</div>
5353

54-
<div class="fixed inset-0 w-full h-screen bg-white duration-300 delay-75 lg:relative lg:h-auto lg:bg-transparent lg:pointer-events-auto z-[9] transition-[max-height] lg:max-h-fit">
54+
<div>
5555
{% get_filtered_query request filter.form as filtered_query %}
5656
{% if filtered_query %}
5757
<div class="flex flex-wrap gap-1 mt-3">
@@ -76,7 +76,7 @@ <h2 class="mb-2 text-xl">{{ heading }}</h2>
7676
</div>
7777
{% endif %}
7878

79-
<form method="GET" class="flex sticky top-0 flex-wrap justify-end items-center py-2 px-3 mt-3 bg-gray-50 border-t border-gray-200 md:gap-5 md:text-sm md:font-medium z-[5] border-x">
79+
<form method="GET" class="flex sticky top-0 flex-wrap gap-2 justify-end items-center py-2 px-3 mt-3 bg-gray-50 border-t border-gray-200 md:gap-5 md:text-sm md:font-medium z-[5] border-x">
8080
<span class="hidden items-center py-1 md:inline-flex"></span>
8181
{% for field_name, field in filter.form|get_filter_fields %}
8282
{% if filter.form %}

0 commit comments

Comments
 (0)