Skip to content

Commit

Permalink
fix: hide empty navigation groups (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Sep 6, 2024
1 parent e5ddb30 commit eb3795a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/unfold/templates/unfold/helpers/app_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% if group.items %}
{% has_nav_item_active group.items as has_active %}

<div class="mb-3" {% if group.collapsible %}x-data="{navigationOpen: {% if has_active %}true{% else %}false{% endif %}}"{% endif %}>
<div class="hidden mb-3 has-[ol]:has-[li]:block" {% if group.collapsible %}x-data="{navigationOpen: {% if has_active %}true{% else %}false{% endif %}}"{% endif %}>
{% if group.separator %}
<hr class="border-t border-gray-200 mx-6 my-2 dark:border-gray-800" />
{% endif %}
Expand Down Expand Up @@ -52,8 +52,8 @@ <h2 class="font-semibold flex flex-row items-center mb-1 mx-3 py-1.5 px-3 select
{% endif %}
{% endfor %}
</ol>
</div>
{% endif %}
</div>
{% endfor %}
</div>

Expand Down

0 comments on commit eb3795a

Please sign in to comment.