diff --git a/frontend/src/components/InfoModal.tsx b/frontend/src/components/InfoModal.tsx index e9770c0..6f18891 100644 --- a/frontend/src/components/InfoModal.tsx +++ b/frontend/src/components/InfoModal.tsx @@ -12,16 +12,23 @@ interface InfoModalProps { export function InfoModal({ showModal, setShowModal, title, children }: InfoModalProps) { return ( -
- setShowModal(false)} - onPointerDown={(e) => e.stopPropagation()} - /> -
-

{title}

+ {/* 修复:将背景色从白色更改为网站的深色主题,并调整边框颜色 */} +
+ {/* 修复:创建一个固定的头部,包含标题和关闭按钮,使其不随内容滚动 */} +
+

{title}

+ setShowModal(false)} + onPointerDown={(e) => e.stopPropagation()} + /> +
+ + {/* 修复:为内容区域添加 overflow-y-auto,使其可独立滚动 */} +
+ {/* 修复:将内容区域的文字颜色从黑色改为白色 */} +
{children}
-
{children}
); diff --git a/frontend/src/pages/About.tsx b/frontend/src/pages/About.tsx index bb6bee7..3ff45f4 100644 --- a/frontend/src/pages/About.tsx +++ b/frontend/src/pages/About.tsx @@ -1,7 +1,8 @@ // 这个文件内容直接从您的 _h.about.tsx 迁移而来 export function About() { return ( -
+ // 修复:移除 text-black 类,文本颜色将由父组件 InfoModal 控制 +

Vmail.DEV is a Virtual temporary email service.{" "} diff --git a/frontend/src/pages/Privacy.tsx b/frontend/src/pages/Privacy.tsx index 5030c45..513635c 100644 --- a/frontend/src/pages/Privacy.tsx +++ b/frontend/src/pages/Privacy.tsx @@ -1,7 +1,8 @@ // 这个文件内容直接从您的 _h.privacy.tsx 迁移而来 export function Privacy() { return ( -

+ // 修复:移除 text-black 类,文本颜色将由父组件 InfoModal 控制 +

At Vmail.DEV, we value the privacy of our users and are committed to diff --git a/frontend/src/pages/Terms.tsx b/frontend/src/pages/Terms.tsx index 27ee618..3b5048b 100644 --- a/frontend/src/pages/Terms.tsx +++ b/frontend/src/pages/Terms.tsx @@ -1,7 +1,8 @@ // 这个文件内容直接从您的 _h.terms.tsx 迁移而来 export function Terms() { return ( -

+ // 修复:移除 text-black 类,文本颜色将由父组件 InfoModal 控制 +

Welcome to Vmail.DEV! These Terms of Service ("Terms") govern your