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

Tables too aggressively break code blocks mid-word #23

Open
mDuo13 opened this issue May 1, 2023 · 0 comments
Open

Tables too aggressively break code blocks mid-word #23

mDuo13 opened this issue May 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mDuo13
Copy link
Contributor

mDuo13 commented May 1, 2023

The first column in particular, which often contains field names, is too small to fit many of these field names. For example, DiscountedFee gets cut to "Disco / unted / Fee" in this table:

2023-05-01_160512_231409776

This is something that can be improved (to some extent) with CSS. On xrpl.org, the CSS prioritizes not breaking these field names, so the same table would render like this:

2023-05-01_160719_366584588

It seems that the main culprit is the following CSS rule:

code[class="language-text"] {
    overflow-wrap: anywhere;
}

I'm not sure where this rule is coming from originally (it's one of the "inline" style sheets) but it's usually better not to apply that within tables. There are drawbacks to this—if you have really long field names/code lines in a table then it can distort the table or run it off the side—but they're manageable and legibility is generally better without it in my experience.

@mDuo13 mDuo13 added the enhancement New feature or request label May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant