Fix menu.html dark_mode attribute in UI

This commit is contained in:
Théophile Diot 2023-09-06 14:46:01 +02:00
parent c7e834a0dc
commit f57fc5d3f6
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -434,19 +434,16 @@
name="csrf_token"
value="{{ csrf_token() }}"
/>
<input
{%
if
dark_mode=""
="True"
%}checked{%
endif
%}
id="darkMode"
data-dark-toggle
class="dark:brightness-125 hover:brightness-75 rounded-10 duration-300 ease-in-out after:rounded-circle after:shadow-2xl after:duration-300 checked:after:translate-x-5.3 h-5 mt-0.5 relative float-left w-10 cursor-pointer appearance-none border border-solid border-gray-200 bg-slate-800/10 bg-none bg-contain bg-left bg-no-repeat align-top transition-all after:absolute after:top-px after:h-4 after:w-4 after:translate-x-px after:bg-white after:content-[''] checked:border-primary checked:bg-primary checked:bg-none checked:bg-right"
type="checkbox"
/>
<input {% if dark_mode == True %}checked{% endif %} id="darkMode"
data-dark-toggle class="dark:brightness-125 hover:brightness-75 rounded-10
duration-300 ease-in-out after:rounded-circle after:shadow-2xl
after:duration-300 checked:after:translate-x-5.3 h-5 mt-0.5 relative
float-left w-10 cursor-pointer appearance-none border border-solid
border-gray-200 bg-slate-800/10 bg-none bg-contain bg-left bg-no-repeat
align-top transition-all after:absolute after:top-px after:h-4 after:w-4
after:translate-x-px after:bg-white after:content-['']
checked:border-primary checked:bg-primary checked:bg-none
checked:bg-right" type="checkbox" />
<label
for="darkMode"
data-dark-toggle-label