-
Notifications
You must be signed in to change notification settings - Fork 501
Seeing issues with tables not aligning properly in some browsers #83
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
Comments
Added webscraping example
Retested on Android 14 Chrome - Still broken. |
With PR #1890 merged, I wanted to test it and got a bit confused. PR is merged, I see CI action with deploy, but |
Code blocks use a different variable, which this commit adds. On the current Nushell website, for example [Quick Tour][quicktour] page, we can see that the font-family being applied is in the generated style-*.css, with declaration `code { font-family(--code-font-family); }`, which does not match our supposed override which defines a var under a different name `--font-family-code`. This var name has been used since the introduction of the override in 83ced1d. Maybe vuepress changed the variable at some point? This is a follow-up to 2ec6143 (PR nushell#1890, PR nushell#1906), which attempts to solve Android monospace due to missing font coverage (nushell#83). Instead of replacing `--font-family-code`, `--code-font-family` is added as an additional value-identical declaration just in case the other variable is being used somewhere still. [quicktour]: https://www.nushell.sh/book/quick_tour.html#nushell-commands-output-data
Code blocks use a different variable, which this commit adds. On the current Nushell website, for example [Quick Tour][quicktour] page, we can see that the font-family being applied is in the generated style-*.css, with declaration `code { font-family(--code-font-family); }`, which does not match our supposed override which defines a var under a different name `--font-family-code`. This var name has been used since the introduction of the override in 83ced1d. Maybe vuepress changed the variable at some point? This is a follow-up to 2ec6143 (PR #1890, PR #1906), which attempts to solve Android monospace due to missing font coverage (#83). Instead of replacing `--font-family-code`, `--code-font-family` is added as an additional value-identical declaration just in case the other variable is being used somewhere still. [quicktour]: https://www.nushell.sh/book/quick_tour.html#nushell-commands-output-data
This is now resolved. Looks fine on my Android phone now, which did show the issue of misaligned table. 🎉 |
Here's a picture from one screenshot:
Asking around on twitter, I was told:
"Ok so I assumed this was ligatures from ---- not the actual characters for those lines. The misalignment on Android comes from the droid sans mono font not having those characters, causing it to fall back to noto sans symbols, which has different widths.
Which means
font-variant-ligatures: none
will have no effect, but using a web font to force it to use one of the other fonts in your list before it falls back to monospace will fix this for you"So it sounds like we need to set better fallback fonts so that Android (and other browsers with the same issue) don't fallback to the wrong font.
cc @ibraheemdev
The text was updated successfully, but these errors were encountered: