Skip to content

Commit

Permalink
toggle between up/downwards arrow #4718
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-sh committed Nov 10, 2023
1 parent d17d253 commit 9a0b11f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions templates/incl/menubar.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,17 @@
<div class="flex flex-row gap-2 items-center">
<i class="fas fa-fw fa-globe"></i>
<span class="hidden lg:flex">{{ current_language().sym }}</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
<svg id="language-arrow" class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
</div>
</a>
<div class="dropdown-menu dropdown-blue" id="language-dropdown" style="display: none;">
<div class="dropdown-menu dropdown-blue" id="language-dropdown" style="display: none;"
_="on mutation of @style
set arrow to #language-arrow
if *display == 'none'
remove .rotate-180 from arrow
else if not arrow.classList.contains('rotate-180')
add .rotate-180 to arrow
end">
<div class="mb-4">
<input id="search_language" placeholder="{{_('search')}}" class="border text-black border-gray-500 rounded h-8 px-2 w-full">
</div>
Expand Down

0 comments on commit 9a0b11f

Please sign in to comment.