Make mobile language dropdown push menu items instead of overlapping
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
e282a981a6
commit
7cdb601cfd
1 changed files with 2 additions and 2 deletions
|
|
@ -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) => (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue