diff --git a/dev.log b/dev.log index 91c196a..11dbf1e 100644 Binary files a/dev.log and b/dev.log differ diff --git a/src/components/AuthModal.astro b/src/components/AuthModal.astro index 6766498..d5fe972 100644 --- a/src/components/AuthModal.astro +++ b/src/components/AuthModal.astro @@ -88,6 +88,9 @@ const fullLoginLabel = t('go to full login') }, close() { + // 未打开时直接返回:本函数的 ESC 监听挂在 window 上,页面里任何一次 ESC 都会调到它。 + // 若无条件清掉 body 滚动锁,会把别的浮层(图片灯箱等)的滚动锁一起抢掉。 + if (!this.isOpen) return this.isOpen = false this.pending = null this.error = "" diff --git a/src/components/BrandModal.astro b/src/components/BrandModal.astro index 27d3375..0150ebb 100644 --- a/src/components/BrandModal.astro +++ b/src/components/BrandModal.astro @@ -52,7 +52,6 @@ @@ -142,18 +141,12 @@ .showsmodal-name { @apply flex-1 truncate; } - .showsmodal-ct { - @apply text-[#999] text-[10px] ml-auto; - } .showsmodal-empty { @apply py-6 text-center text-[#999] text-[13px]; } .showsmodal-foot { @apply flex items-center justify-between px-4 py-3 border-t border-black/5 shrink-0 text-[11px] text-[#888]; } - .showsmodal-counter { - @apply tracking-[0.06em]; - } .showsmodal-ok { @apply appearance-none bg-black text-white border border-black px-4 py-1.5 cursor-pointer text-[12px] tracking-[0.1em] transition-colors hover:bg-black/85; } diff --git a/src/components/Breadcrumb.astro b/src/components/Breadcrumb.astro index 6b24684..109ec8b 100644 --- a/src/components/Breadcrumb.astro +++ b/src/components/Breadcrumb.astro @@ -1,5 +1,5 @@ --- -import { useTranslations, DEFAULT_LOCALE, type Locale, getI18n } from "@/i18n/utils"; +import { getI18n } from "@/i18n/utils"; interface Crumb { /** i18n key:英文原文,如 'Home' / 'Runway Archive';中文环境自动取字典翻译 */ diff --git a/src/components/Index.astro b/src/components/Index.astro index ca7d91d..d67f5de 100644 --- a/src/components/Index.astro +++ b/src/components/Index.astro @@ -70,14 +70,6 @@ const streetItems: { src: string; loc: string; event: string; id: string }[] = s > Social Media - @@ -140,11 +132,6 @@ const streetItems: { src: string; loc: string; event: string; id: string }[] = s } - -