Skip to content

[BUG] Code Block Font-Size not Matching#695

@qtc-de

Description

@qtc-de

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:

  1. Goto https://blog.tneitzel.eu/posts/01-attacking-java-rmi-via-ssrf/ (from iOS device)
  2. Scroll down to the first codeblock (e.g. search for import java.rmi.registry.LocateRegistry)
  3. Compare the font-size of the line numbers to the font-size of the actual code
  4. Scroll down to the next code block (e.g. search for public boolean isReusable)
  5. 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

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions