theme: fix input zoom in on iOS
All checks were successful
/ depoly (push) Successful in 1m7s

This commit is contained in:
thislight 2024-08-13 15:49:36 +08:00
parent e2a5666b34
commit 35f51db294
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
2 changed files with 11 additions and 2 deletions

View file

@ -18,6 +18,12 @@
--body-size: 0.9375rem; --body-size: 0.9375rem;
} }
} }
input,
textarea {
/* iOS will zoom in if the font-size is smaller than 16px (or 1rem? i dont know) */
font-size: 1rem;
}
} }
[lang^="zh"], [lang^="zh"],
@ -99,6 +105,7 @@
--tutu-anim-curve-sharp: cubic-bezier(0.4, 0, 0.6, 1); --tutu-anim-curve-sharp: cubic-bezier(0.4, 0, 0.6, 1);
@media (max-width: 300px) { @media (max-width: 300px) {
/* XS screen, like wearables */ /* XS screen, like wearables */
& { & {
--tutu-transition-shadow: box-shadow 157.5ms var(--tutu-anim-curve-std); --tutu-transition-shadow: box-shadow 157.5ms var(--tutu-anim-curve-std);
@ -106,6 +113,7 @@
} }
@media (max-width: 600px) { @media (max-width: 600px) {
/* Mobile */ /* Mobile */
& { & {
--tutu-transition-shadow: box-shadow 225ms var(--tutu-anim-curve-std); --tutu-transition-shadow: box-shadow 225ms var(--tutu-anim-curve-std);
@ -113,6 +121,7 @@
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
/* Tablet */ /* Tablet */
& { & {
--tutu-transition-shadow: box-shadow 292.5ms var(--tutu-anim-curve-std); --tutu-transition-shadow: box-shadow 292.5ms var(--tutu-anim-curve-std);
@ -139,4 +148,4 @@
body { body {
font-size: var(--body-size, 1rem); font-size: var(--body-size, 1rem);
} }

View file

@ -128,7 +128,7 @@ const TootBottomSheet: Component = (props) => {
<Avatar src={profile()!.inf?.avatar} /> <Avatar src={profile()!.inf?.avatar} />
<textarea <textarea
placeholder={`Reply to ${toot()?.account?.displayName ?? ""}...`} placeholder={`Reply to ${toot()?.account?.displayName ?? ""}...`}
style={{ width: "100%", "font-size": "1rem", border: "none" }} style={{ width: "100%", border: "none" }}
></textarea> ></textarea>
<IconButton> <IconButton>
<Send /> <Send />