Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Hi there 👋
Describe the bug:
There seems to be an issue with line numbers in code blocks and mobile devices. When using line numbers with table format (lineNos: true within the config file and a bare code block like ´´´java), the font size of code blocks viewed from my iOS devices is not correct. Unfortunately, the issue seems to be non deterministic and does not occur for all code blocks.
- Device/Os: iPhone iOS 15.2
- Type: Mobile
- Browser and version: Firefox Klar (40.0), DuckDuckGo 7.65.2.0
- Hugo Version: 0.89.4-1
- Theme Version: master
Steps to reproduce the behavior:
- Goto https://blog.tneitzel.eu/posts/01-attacking-java-rmi-via-ssrf/ (from iOS device)
- Scroll down to the first codeblock (e.g. search for
import java.rmi.registry.LocateRegistry) - Compare the font-size of the line numbers to the font-size of the actual code
- Scroll down to the next code block (e.g. search for
public boolean isReusable) - The font-size is correct on this one.
Expected behavior:
The font-size of the line numbers and the actual code should be consistent.
Screenshots
Additional context
I'm not sure whether this is a problem with the theme. I tried to debug it manually but from my point of view everything seems to be correct. From my desktop devices I cannot reproduce the issue and everything is displayed correctly.
