fix: 修复 iOS Safari 上历史记录列表无法滚动的问题

补全 html → body → #root 的高度链,使用 dvh 动态视口单位
适配 iOS Safari 地址栏动态收起/展开,添加 overscroll-contain
防止滚动穿透
This commit is contained in:
2026-03-02 07:14:18 +08:00
parent 0cb6dd418f
commit fc34989eaa
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="zh-CN">
<html lang="zh-CN" class="h-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
@@ -12,7 +12,7 @@
<title>VoicePaste</title>
</head>
<body class="h-full bg-bg text-fg overflow-hidden select-none">
<div id="root"></div>
<div id="root" class="h-full"></div>
<script type="module" src="src/main.tsx"></script>
</body>
</html>