From 6548032b064d36d305c07d04f239fabd2d971794 Mon Sep 17 00:00:00 2001 From: ittoview Date: Sun, 8 Mar 2026 03:30:20 +0000 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B4=E5=90=88):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E6=A8=A1=E6=80=81=E6=A1=86?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E8=A2=AB=E5=85=B6=E4=BB=96=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E9=81=AE=E6=8C=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将模态框背景遮罩 z-index 从 z-50 提升到 z-[100] - 将模态框内容 z-index 从 z-50 提升到 z-[101] - 确保模态框在所有其他元素(Header 搜索、Sidebar、全屏矩阵等)之上显示 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 c1f1480..1f4e0c2 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-50" + className="fixed inset-0 bg-black/50 z-[100]" /> {/* 模态框 */} @@ -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-50 flex items-center justify-center" + className="fixed inset-4 md:inset-8 lg:inset-16 z-[101] flex items-center justify-center" >
{/* 头部 */} diff --git a/src/data/changelog.json b/src/data/changelog.json index dd777c5..ab69064 100644 --- a/src/data/changelog.json +++ b/src/data/changelog.json @@ -1,5 +1,12 @@ { "changelogEntries": [ + { + "id": "2026-03-08-fix-modal-zindex", + "date": "2026-03-08", + "type": "fix", + "title": "修复更新日志模态框层级被其他元素遮挡的问题", + "scope": "整合" + }, { "id": "2026-03-08-update-changelog-rule", "date": "2026-03-08",