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

Lines should break between words #8

Open
VFDan opened this issue Apr 22, 2021 · 2 comments
Open

Lines should break between words #8

VFDan opened this issue Apr 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@VFDan
Copy link

VFDan commented Apr 22, 2021

A clear description of the issue
Line breaks currently can happen in the middle of a word if the lines are too long. This can look ugly and breaks the reader's flow. Lines should break between words so the flow is undisturbed.

Screenshots
image

Additional info

  • Codeblock language, if any: Shouldn't matter, but testing with none
  • Discord build & version: Stable 82866 (d02d7ca)
  • Platform: Windows 10 64-Bit (10.0.18362)
  • Plugin version: 1.2.0
@VFDan VFDan added the bug Something isn't working label Apr 22, 2021
@Ascor8522
Copy link

.bd-codeblock-table td:last-child {
padding-left: 8px;
word-break: break-all;
}

should be

.bd-codeblock-table td:last-child { 
    padding-left: 8px; 
    word-break: break-word;
} 

@Glaived
Copy link

Glaived commented Nov 12, 2021

thank you @Ascor8522

To fix the problem via a temporary solution, using CSS injection:

.bd-codeblock-table td:last-child { 
    word-break: break-word !important;
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants