Prevent TextField zoom #673
Replies: 2 comments 4 replies
-
First of all, please do not abuse the issue tracker of this project. For questions not related to project development, you can ask for help in the Discussions forum. Secondly, what have you tried, you should list them clearly so that others can know where the problem is and help you. For our project, setting input[type="text"], textarea {
font-size: 16px;
} |
Beta Was this translation helpful? Give feedback.
-
Sorry about that, it wasn’t my intention. I searched for a bit before creating a issue, but my baby started to cry and I did this asap to try to get some help. I made a script with the following content: // ==/UserScript==
(function () {
"use strict";
viewport;
let viewportMeta = document.querySelector('meta[name="viewport"]');
if (viewportMeta) {
viewportMeta.setAttribute(
"content",
"width=device-width, initial-scale=1, maximum - scale=1",
);
} else {
viewportMeta = document.createElement("meta");
viewportMeta.name = "viewport";
viewportMeta.content =
"width=device-width, initial-scale=1, maximum - scale=1";
document.head.appendChild(viewportMeta);
}
})(); But I have no clue if it’s correct. And now I’m sure I don’t know a thing about this and need detailed help as I’m 5. |
Beta Was this translation helpful? Give feedback.
-
Hi, it’s not the first time I try to make this for the iOS safari, then I found a guide on how to prevent this behavior, I tried some ways to inject the maximum viewport scale and font size with no luck, can someone help me?
according with this page doesn’t look hard to prevent this, but idk how to do https://thestateofmatter.com/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields
also I couldn’t find anything on the scripts repo, so I’m asking for help here. Sorry if it’s the wrong place.
Beta Was this translation helpful? Give feedback.
All reactions