codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 68 forks source link

Tables break words oddly when other columns are too wide #1324

Open MoshiKoi opened 6 months ago

MoshiKoi commented 6 months ago

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.

michaelblyons commented 6 months ago

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.