From 33dba3df5f0b9083eb680716535df3a625bcef64 Mon Sep 17 00:00:00 2001 From: AmintaCCCP Date: Mon, 5 Oct 2026 13:49:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(readme-modal):=20README=20=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=A2=9E=E5=A4=A7=E4=B8=BA=E8=BF=91=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将点击仓库卡片的 README 弹窗从 max-w-[1130px]/max-h-[90vh] 改为 与生成仓库信息卡插件弹窗(PluginPageModal)一致的近全屏尺寸: w/h 均为 calc(100vh|100vw - 2rem)。DialogContent 由 grid 改为 flex-col,内层容器用 flex-1 填满;RepositoryCard 的懒加载占位 弹窗同步同尺寸,避免弹窗真实加载时出现尺寸跳变。 --- src/components/ReadmeModal.tsx | 4 ++-- src/components/RepositoryCard.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ReadmeModal.tsx b/src/components/ReadmeModal.tsx index d816c532..b416e1cc 100644 --- a/src/components/ReadmeModal.tsx +++ b/src/components/ReadmeModal.tsx @@ -528,14 +528,14 @@ export const ReadmeModal: React.FC = ({ { if (!onCloseAutoFocus) return; event.preventDefault(); onCloseAutoFocus(); }} > -
+
{readmeContent && !loading && (
!open && onClose()}> { event.preventDefault(); onCloseAutoFocus(); }} > Loading README -
+