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

Navigation renders triangle markers and list elements on a seperate line (firefox) #2457

Closed
HaraldKi opened this issue Dec 9, 2023 · 1 comment
Labels
bug Functionality does not match expectation

Comments

@HaraldKi
Copy link

HaraldKi commented Dec 9, 2023

Search terms

navigation rendering, firefox, css

Expected Behavior

The navigation should be rendered in the form > topic in all browsers and settings.

Actual Behavior

The navigation renders like

>
  topic

Steps to reproduce the bug

Navigate to https://harald.codeberg.page/jsonaccess/doc/ to see the effect.

NOTE: for me this happens in firefox 119.0.1 on Linux, not with chromium and it may be a quirk depending on actual font sizes used. I did not mess with font-sizes actively, just guessing that these may be slightly differing on systems.

I can fix this with a minimal change to the CSS: (see screenshot) it suffices to replace calc(100% - 1.5rem) with calc(100% - 1.7rem) or just use em instead of rem. The calculation seems to be just a bit over-optimized. I am not saying this is the solution as I did not dive into all the details of the CSS. Maybe the width is not needed at all. Maybe the surrounding element should be display: flex.

typedoc-navigation-formatting-firefox

Environment

  • Typedoc version: 0.25.4
  • TypeScript version: 5.3.2
  • Node.js version: v16.13.2
  • OS: DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
@HaraldKi HaraldKi added the bug Functionality does not match expectation label Dec 9, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 17, 2023

Huh, that's odd... Firefox is all I use, and it works as expected on my Fedora box.

Not sure why I didn't use flex display from the start here, that seems like a much better styling solution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants