Force portrait layout on phones instead of landscape prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-27 14:26:12 +08:00
parent bc0be9ce1a
commit ed96b3ffb0
4 changed files with 82 additions and 65 deletions
+11
View File
@@ -5,6 +5,17 @@
---
## 2026-07-27 — 手机端真·竖屏(禁横屏布局)
### 变更
1. 去掉「请竖屏使用」遮罩:那只是提示,不是锁定。
2. **能锁系统方向时**(常见:安卓安装到主屏幕的 PWA)调用 `orientation.lock`
3. **锁不住时**(多数浏览器页 / iOS):设备横放也不进入横屏 UI,界面仍按竖屏坐标系渲染。
4. Manifest`orientation` 改为 `portrait-primary`
---
## 2026-07-27 — 手机端竖屏锁定
### 变更