New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font size increasing for no reason on mobile Webview #1558
Comments
Thanks for reporting. How can I reproduce this issue? |
I'm just loading this html in a regular WKWebView (iOS):
Screen.Recording.2023-10-26.at.15.02.21.movthe json is: |
Also noticed the word wrap is disabled when the json contains a URL, is there any way to avoid it? |
Thanks for sharing. I can indeed reproduce the issue on Mobile Safari, I tried in the Samsung internet browser too but there I don't see the increased font size. I guess that Mobile Safari has certain default CSS styles that introduce this larger font. We would have to figure that out, help would be welcome.
It should indeed also wrap, we'll have to fix that. It should be possible to look at the CSS for wrapping used in the non-url values, and apply that to the url values too. |
For testing: I've put your example on https://jsbin.com/bajilob/edit?html |
I was able to fix the font size changing via CSS with the property: |
Thanks for sharing. So where did you apply the CSS property? Will it solve the issue when I add the following CSS to .jsoneditor {
-webkit-text-size-adjust: none;
text-size-adjust: none;
} |
I managed to reproduce the issue with the url not wrapping: it only happens in Chrome (not in Firefox) and when the editor has mode |
This should be fixed now in |
Works like a charm, thanks a lot! |
👍 |
When I try to render an editor and expand a section containing an URL node, the font size increases.
This behavior only happens on "view" mode.
Reproduced the issue on iOS and Android webviews.
The text was updated successfully, but these errors were encountered: