File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 44 < div @click ="sidebarDesktopOpen = !sidebarDesktopOpen "
55 hx-get ="{% url "admin:toggle_sidebar " %}"
66 hx-swap="none "
7- class ="block bg-white border cursor-pointer fixed flex h-6 hidden items-center justify-center rounded-full text-gray-500 top-5 -translate-x-1/2 w-6 z-50 xl:flex dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200 "
7+ class ="bg-white border cursor-pointer fixed h-6 hidden items-center justify-center rounded-full text-gray-500 top-5 -translate-x-1/2 w-6 z-50 xl:flex dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200 "
88 :class ="{'ml-6 rotate-180': !sidebarDesktopOpen, 'ml-72': sidebarDesktopOpen} ">
99 < span class ="material-symbols-outlined md-16 ">
1010 first_page
1111 </ span >
1212 </ div >
1313
1414 < div @click ="sidebarMobileOpen = !sidebarMobileOpen "
15- class ="fixed bottom-0 bg-gray-700 flex cursor-pointer flex items-center left-0 mb-2 ml-2 justify-center px-2 py-1 rounded-full shadow-sm text-xs text-white uppercase z-50 xl:hidden "
15+ class ="fixed bottom-0 bg-gray-700 cursor-pointer flex items-center left-0 mb-2 ml-2 justify-center px-2 py-1 rounded-full shadow-sm text-xs text-white uppercase z-50 xl:hidden "
1616 :class ="{'ml-72 -translate-x-1/2': sidebarMobileOpen} ">
1717 {% trans "Menu" %}
1818 </ div >
Original file line number Diff line number Diff line change 11{% load i18n %}
22
33< div class ="relative min-w-sidebar transition-width w-sidebar z-30 ">
4- < nav id ="nav-sidebar " class ="bg-gray-50 border-r border-gray-200 flex flex-col fixed max-h-screen min-h-screen min-w-sidebar transition-width w-sidebar dark:bg-gray-950 dark:border-gray-800 ">
5- < div class ="border-b border-gray-200 mb-5 py-3 dark:border-gray-800 ">
6- < div class ="flex font-medium h-10 items-center px-6 text-gray-700 dark:text-gray-200 ">
7- {% if site_logo %}
8- {% include "unfold/helpers/site_logo.html" %}
9- {% elif branding %}
10- {% include "unfold/helpers/site_icon.html" %}
11- {% endif %}
4+ < nav id ="nav-sidebar " class ="bg-gray-50 border-r border-gray-200 fixed max-h-screen transition-width w-sidebar dark:bg-gray-900 dark:border-gray-800 ">
5+ < div class ="flex flex-col min-h-screen min-w-sidebar dark:bg-gray-950/20 ">
6+ < div class ="border-b border-gray-200 mb-5 py-3 dark:border-gray-800 ">
7+ < div class ="flex font-medium h-10 items-center px-6 text-gray-700 dark:text-gray-200 ">
8+ {% if site_logo %}
9+ {% include "unfold/helpers/site_logo.html" %}
10+ {% elif branding %}
11+ {% include "unfold/helpers/site_icon.html" %}
12+ {% endif %}
13+ </ div >
1214 </ div >
13- </ div >
1415
15- {% include "unfold/helpers/search.html" %}
16+ {% include "unfold/helpers/search.html" %}
1617
17- {% if sidebar_navigation|length > 0 %}
18- {% include "unfold/helpers/app_list.html" with app_list=available_apps %}
19- {% else %}
20- {% include "admin/app_list.html" with app_list=available_apps show_changelinks=False %}
21- {% endif %}
18+ {% if sidebar_navigation|length > 0 %}
19+ {% include "unfold/helpers/app_list.html" with app_list=available_apps %}
20+ {% else %}
21+ {% include "admin/app_list.html" with app_list=available_apps show_changelinks=False %}
22+ {% endif %}
23+ </ div >
2224 </ nav >
2325</ div >
You can’t perform that action at this time.
0 commit comments