-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[BUG] On iOS mobile phone, the code block font size is not the same #828
Comments
I don't have a macbook so it's hard for me to connect my phone via USB cable for web debugging, but I found a project remotedebug-ios-webkit-adapter that should allow remote debugging of web pages on mobile phones in Windows OS Temporary workaround : Once I stopped using params:
assets:
disableHLJS: true and fallback code block highlighted as default configuration: markup:
# highlight:
# anchorLineNos: true
# codeFences: true
# guessSyntax: true
# lineNos: true
# noClasses: false
# style: monokai Screenshots: |
Excellent |
@DejavuMoe Can we close this if this issue is now sorted? |
There is no better solution for the time being, so let's close it for the time being🤔 Thank you for your work. |
@DejavuMoe you can head over to Hugo forums and let them know about this, imo this isn't theme side bug and totally depends on chroma syntax highlighter |
OK,thanks |
Also seeing this bug. The workaround that I found was to remove a code type from my code blocks. Disabling HLJS had no effect at all. Specifically, the use of HCL code highlighting appears to break the code size. Perhaps an interaction between HLJS (which does not support HCL) and Chroma (which does)? Once the HCL highlighting is removed, the JS highlighting switches from having the same bug, to being rendered correctly. |
Hi all, This bug can be traced back to this iOS issue with flex and font sizing: https://stackoverflow.com/questions/38346494/why-is-flex-affecting-font-size-on-ios Adding the following styles to your site will fix this bug and allow to you use the default Chroma highlighting in Hugo:
|
After many calories burned, the solution was just a Google away: adityatelange/hugo-PaperMod#828 (comment) ...just gotta find the right Google words, evidently.
More details about the issue and fix can be found here: adityatelange/hugo-PaperMod#828
More details about the issue and fix can be found here: adityatelange/hugo-PaperMod#828 Co-authored-by: jeremy avnet <brainsik@users.noreply.github.com>
More details about the issue and fix can be found here: adityatelange/hugo-PaperMod#828 Co-authored-by: jeremy avnet <brainsik@users.noreply.github.com>
Describe the bug
80928d9f2327809b7ecccf36930e4b726a7d10b2
Steps to reproduce the behavior:
Expected behavior:
Access to the code block font size on mobile devices (cell phones) browsers remains essentially the same size
Screenshots
![IMG_1501](https://user-images.githubusercontent.com/57177121/158043155-7ab485d3-f9e2-4ccc-980e-0155bbe13278.PNG)
![IMG_1502](https://user-images.githubusercontent.com/57177121/158043171-47a40bde-61e3-4a64-a948-e065eba4841b.PNG)
Additional context
I'm not sure if it's the same problem as #695
My Hugo
config.yml
:code highlighting css:
The text was updated successfully, but these errors were encountered: