From 17b21e76d30e2aedac10165e7695044553d9e423 Mon Sep 17 00:00:00 2001 From: yozuru Date: Sun, 20 Apr 2025 06:52:22 +0800 Subject: [PATCH] fix: prevent language switcher interaction when modal is open --- .../{LanguageSwitcher.astro => language-switcher.astro} | 0 src/layouts/layout.astro | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/components/{LanguageSwitcher.astro => language-switcher.astro} (100%) diff --git a/src/components/LanguageSwitcher.astro b/src/components/language-switcher.astro similarity index 100% rename from src/components/LanguageSwitcher.astro rename to src/components/language-switcher.astro diff --git a/src/layouts/layout.astro b/src/layouts/layout.astro index 3a6d4a1..0e750da 100644 --- a/src/layouts/layout.astro +++ b/src/layouts/layout.astro @@ -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;