qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Tables break words oddly when other columns are too wide

Open MoshiKoi opened this issue 11 months ago • 1 comments

meta:290996

The automatic layout and word-breaking algorithm used causes some words to be split non-ideally.

Presumably caused by word-break: break-word here:

https://github.com/codidact/qpixel/blob/8d71abf4bc06eff6d945a862d4da7ff9befd2206/app/assets/stylesheets/posts.scss#L196-L198

Manually disabling this rule fixes the issue (at least on Edge), though I am not sure whether there is a case where the above rule is necessary.

MoshiKoi avatar Mar 09 '24 05:03 MoshiKoi

You could disable break-word again [just] inside tables. I assume the rule was made originally to keep people from typing Aaaaaaaaaaaa...aaa and breaking the site layout.

michaelblyons avatar Mar 09 '24 16:03 michaelblyons