From 7cb5153aa819b2f7ad7a6e3fa9dff97a578d3ade Mon Sep 17 00:00:00 2001
From: JiaJun <2394389886@qq.com>
Date: Fri, 17 Apr 2026 17:50:28 +0800
Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E6=B7=BB=E5=8A=A0iframe=E9=AB=98?=
=?UTF-8?q?=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94=E4=BC=A0=E9=80=92=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/test-host.html | 77 +++++++++++++++++++++++--------
src/features/authGuide.tsx | 93 ++++++++++++++++++++++++++++++++++++++
2 files changed, 150 insertions(+), 20 deletions(-)
diff --git a/public/test-host.html b/public/test-host.html
index e8a9e9a..6dc8759 100644
--- a/public/test-host.html
+++ b/public/test-host.html
@@ -23,19 +23,32 @@
.layout {
display: grid;
grid-template-columns: 360px minmax(0, 1fr);
- min-height: 100vh;
+ height: 100vh;
}
.panel {
padding: 24px;
background: #ffffff;
border-right: 1px solid #e5e7eb;
+ overflow: auto;
}
.preview {
- padding: 24px;
+ width: 500px;
+ height: 800px;
+ overflow: auto;
}
+ .preview-frame {
+ width: 800px;
+ height: 300px;
+ overflow: hidden;
+ border: 1px solid #d1d5db;
+ border-radius: 16px;
+ background: #ffffff;
+ }
+
+
h1 {
margin: 0 0 8px;
font-size: 20px;
@@ -98,14 +111,15 @@
font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
white-space: pre-wrap;
min-height: 160px;
+ max-height: min(360px, calc(100vh - 260px));
+ overflow: auto;
}
iframe {
+ display: block;
width: 100%;
- height: calc(100vh - 48px);
- border: 1px solid #d1d5db;
- border-radius: 16px;
- background: #ffffff;
+ height: 100%;
+ border: 0;
}
@media (max-width: 960px) {
@@ -118,7 +132,8 @@
border-bottom: 1px solid #e5e7eb;
}
- iframe {
+ .preview-frame {
+ width: 100%;
height: 70vh;
}
}
@@ -149,23 +164,46 @@
-
+