pomeloy 2024-01-19 17:30:54 +00:00 committed by GitHub
commit c9c42b1bcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -20,10 +20,10 @@
> >
</button> </button>
{{ if eq $dir "down" }} {{ if eq $dir "down" }}
<div class="invisible h-2 w-full bg-transparent group-hover:visible"></div> <div class="invisible w-full bg-transparent group-hover:visible"></div>
{{ end }} {{ end }}
<div <div
class="{{ cond (eq $dir "down") "top-8" "bottom-7" }} invisible absolute z-50 flex flex-col whitespace-nowrap rounded border border-neutral-300 bg-neutral text-start text-base shadow group-hover:visible ltr:right-0 rtl:left-0 dark:border-neutral-600 dark:bg-neutral-800" class="{{ if not (eq $dir "down") }} bottom-7 {{ end }} invisible absolute z-50 flex flex-col whitespace-nowrap rounded border border-neutral-300 bg-neutral text-start text-base shadow group-hover:visible ltr:right-0 rtl:left-0 dark:border-neutral-600 dark:bg-neutral-800"
> >
{{ $siteLanguages := site.Languages }} {{ $siteLanguages := site.Languages }}
{{ $pageLang := .Page.Lang }} {{ $pageLang := .Page.Lang }}