Skip to content

Commit b6409d5

Browse files
authored
fix: show dock_to_right only if nav sidebar is enabled (#1167)
1 parent f728bd6 commit b6409d5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/unfold/templates/unfold/helpers/welcomemsg.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{% load unfold i18n %}
22

33
<div class="flex flex-row grow font-semibold items-center min-w-0 mr-3">
4-
<span class="cursor-pointer flex flex-row items-center">
5-
<span class="material-symbols-outlined hidden! xl:block!" hx-get="{% url "admin:toggle_sidebar" %}" hx-swap="none" x-on:click="sidebarDesktopOpen = !sidebarDesktopOpen">
6-
dock_to_right
7-
</span>
4+
{% if is_nav_sidebar_enabled %}
5+
<span class="cursor-pointer flex flex-row items-center">
6+
<span class="material-symbols-outlined hidden! xl:block!" hx-get="{% url "admin:toggle_sidebar" %}" hx-swap="none" x-on:click="sidebarDesktopOpen = !sidebarDesktopOpen">
7+
dock_to_right
8+
</span>
89

9-
<span class="material-symbols-outlined block! xl:hidden!" x-on:click="sidebarMobileOpen = !sidebarMobileOpen">
10-
dock_to_right
10+
<span class="material-symbols-outlined block! xl:hidden!" x-on:click="sidebarMobileOpen = !sidebarMobileOpen">
11+
dock_to_right
12+
</span>
1113
</span>
12-
</span>
14+
{% endif %}
1315

1416
<span class="block bg-base-200 h-5 mx-3 w-px dark:bg-base-700"></span>
1517

0 commit comments

Comments
 (0)