Compare commits

...

2 Commits

Author SHA1 Message Date
dayjoy
b293b91697 fix: Adjust font size for inputs on iOS devices 2025-10-14 14:47:12 +08:00
dayjoy
5495c7bf25 fix: 更新viewport meta,禁止缩放 2025-10-14 14:46:16 +08:00
2 changed files with 16 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/great-egret-192.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Egret App</title>
</head>
<body>

View File

@@ -130,3 +130,18 @@
@apply bg-background text-foreground;
}
}
@media only screen and (max-device-width: 414px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
/* Adjust font size for inputs on iOS devices */
.flex-input {
font-size: 16px !important;
}
}
@media screen and (-webkit-min-device-pixel-ratio:2) {
select,
textarea,
input {
font-size: 16px !important;
}
}