From b2ec80c199209cb9a3335d6aa4380fdaf3794edb Mon Sep 17 00:00:00 2001 From: ittoview Date: Sun, 8 Mar 2026 03:36:50 +0000 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B4=E5=90=88):=20=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E6=A8=A1?= =?UTF-8?q?=E6=80=81=E6=A1=86=E5=B1=82=E7=BA=A7=E8=87=B3=E6=9C=80=E9=AB=98?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将背景遮罩 z-index 从 z-[100] 提升到 z-[9999] - 将模态框内容 z-index 从 z-[101] 提升到 z-[10000] - 确保模态框在所有可能的元素之上显示,包括 Header 搜索下拉等 via [HAPI](https://hapi.run) Co-Authored-By: HAPI --- src/components/ChangelogModal.tsx | 4 ++-- src/data/changelog.json | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/ChangelogModal.tsx b/src/components/ChangelogModal.tsx index 1f4e0c2..bffdb86 100644 --- a/src/components/ChangelogModal.tsx +++ b/src/components/ChangelogModal.tsx @@ -57,7 +57,7 @@ export function ChangelogModal({ isOpen, onClose }: ChangelogModalProps) { animate={{ opacity: 1 }} exit={{ opacity: 0 }} onClick={onClose} - className="fixed inset-0 bg-black/50 z-[100]" + className="fixed inset-0 bg-black/50 z-[9999]" /> {/* 模态框 */} @@ -65,7 +65,7 @@ export function ChangelogModal({ isOpen, onClose }: ChangelogModalProps) { initial={{ opacity: 0, scale: 0.95, y: 20 }} animate={{ opacity: 1, scale: 1, y: 0 }} exit={{ opacity: 0, scale: 0.95, y: 20 }} - className="fixed inset-4 md:inset-8 lg:inset-16 z-[101] flex items-center justify-center" + className="fixed inset-4 md:inset-8 lg:inset-16 z-[10000] flex items-center justify-center" >
{/* 头部 */} diff --git a/src/data/changelog.json b/src/data/changelog.json index ae23ddc..f16b553 100644 --- a/src/data/changelog.json +++ b/src/data/changelog.json @@ -1,5 +1,12 @@ { "changelogEntries": [ + { + "id": "2026-03-08-fix-modal-zindex-again", + "date": "2026-03-08", + "type": "fix", + "title": "再次提升更新日志模态框层级至最高优先级", + "scope": "整合" + }, { "id": "2026-03-08-fix-modal-zindex", "date": "2026-03-08",