fix: prevent language switcher interaction when modal is open

This commit is contained in:
yozuru 2025-04-20 06:52:22 +08:00
parent c82d3ab2fe
commit 17b21e76d3
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import { count as soundCount } from '@/lib/sounds';
import { getTranslator } from '@/i18n/utils';
import '@/styles/global.css';
import LanguageSwitcher from '@/components/LanguageSwitcher.astro';
import LanguageSwitcher from '@/components/language-switcher.astro';
interface Props {
description?: string;
title?: string;
@ -59,7 +59,7 @@ const description = Astro.props.description || t('site.description', { count });
position: absolute;
top: 0;
right: 0;
z-index: 50;
z-index: 20;
display: flex;
justify-content: flex-end;
padding: 1rem 1.5rem;