Skip to content

fix: show dock_to_right only if nav sidebar is enabled #1167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/unfold/templates/unfold/helpers/welcomemsg.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{% load i18n %}

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

<span class="material-symbols-outlined !block xl:!hidden" x-on:click="sidebarMobileOpen = !sidebarMobileOpen">
dock_to_right
<span class="material-symbols-outlined !block xl:!hidden" x-on:click="sidebarMobileOpen = !sidebarMobileOpen">
dock_to_right
</span>
</span>
</span>

<span class="block bg-base-200 h-5 mx-3 w-px dark:bg-base-700"></span>
<span class="block bg-base-200 h-5 mx-3 w-px dark:bg-base-700"></span>
{% endif %}

{% include "unfold/helpers/header_back_button.html" %}

Expand Down