From fc34989eaad80fbc0bcec7b9854156ccda5dea73 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 2 Mar 2026 07:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20iOS=20Safari=20?= =?UTF-8?q?=E4=B8=8A=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补全 html → body → #root 的高度链,使用 dvh 动态视口单位 适配 iOS Safari 地址栏动态收起/展开,添加 overscroll-contain 防止滚动穿透 --- web/index.html | 4 ++-- web/src/App.tsx | 2 +- web/src/components/HistoryList.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/index.html b/web/index.html index 62efe38..2d9f29f 100644 --- a/web/index.html +++ b/web/index.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ VoicePaste -
+
diff --git a/web/src/App.tsx b/web/src/App.tsx index 8aeacf0..066389f 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -15,7 +15,7 @@ export function App() { return ( <> -
+

VoicePaste diff --git a/web/src/components/HistoryList.tsx b/web/src/components/HistoryList.tsx index a036c56..08a67e3 100644 --- a/web/src/components/HistoryList.tsx +++ b/web/src/components/HistoryList.tsx @@ -41,7 +41,7 @@ export function HistoryList({ sendJSON }: HistoryListProps) { {history.length === 0 ? (

{"暂无记录"}

) : ( -
+
{history.map((item, i) => (