Lock phone UI to portrait with PWA and landscape gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-27 14:21:43 +08:00
parent b4f709024f
commit bc0be9ce1a
5 changed files with 269 additions and 150 deletions
+33
View File
@@ -33,6 +33,39 @@ body {
var(--bg);
}
.portrait-lock-gate {
display: none;
position: fixed;
inset: 0;
z-index: 9999;
align-items: center;
justify-content: center;
padding: 24px;
background: rgba(11, 14, 17, 0.96);
text-align: center;
}
.portrait-lock-gate.show {
display: flex;
}
.portrait-lock-card {
max-width: 280px;
}
.portrait-lock-title {
margin: 0 0 8px;
font-size: 20px;
font-weight: 700;
color: var(--accent);
}
.portrait-lock-sub {
margin: 0;
font-size: 14px;
color: var(--muted);
}
button,
input {
font: inherit;