Skip to content
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

Unable to scroll horizontally to the left when characters in code block exceed screen width #62

Closed
saurabh-sm opened this issue May 29, 2024 · 2 comments

Comments

@saurabh-sm
Copy link

saurabh-sm commented May 29, 2024

If there's a file with the following content:

---
...
...
front: matter
...
paige: headers
...
...
---

## Some Heading

Some text

```json
{
  "examples": [
    {
      "description": "Placeholder text for description. A really long description that spans the entire width of the screen, such that scrolling to the left is only possible to a limited extent. The leftmost part get cut off.",
      "numbersOne": [1, 3],
      "numbersTwo": [2],
      "output": 2.00
    },
  ]
}

the left-most part of the text gets cut off and is not visible.

I write short descriptions when I highlight text as JSON, but sometimes I'm unable to avoid the width of text in the description. Since this is JSON, I can't split strings over multiple lines.


Is there a setting that I can declare in hugo.toml to make horizontal scrolling work ?

@willfaught
Copy link
Owner

Thanks for reporting. This is a bug. It should be fixed in v0.76.2. Can you confirm?

@saurabh-sm
Copy link
Author

This works as well ! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants