Make mobile language dropdown push menu items instead of overlapping

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-07-06 21:56:04 +02:00
parent e282a981a6
commit 7cdb601cfd

View file

@ -105,8 +105,8 @@ function LanguageSwitcher({ overHero = false, variant = 'header' }) {
{isOpen && ( {isOpen && (
<div <div
role="listbox" role="listbox"
className={`absolute z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-200 bg-white py-1 shadow-lg dark:border-neutral-700 dark:bg-neutral-900 ${ className={`z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-200 bg-white py-1 shadow-lg dark:border-neutral-700 dark:bg-neutral-900 ${
isHeader ? 'right-0' : 'left-0' isHeader ? 'absolute right-0' : 'relative left-0'
}`} }`}
> >
{LANGUAGE_OPTIONS.map((opt) => ( {LANGUAGE_OPTIONS.map((opt) => (