bd-contributions icon indicating copy to clipboard operation
bd-contributions copied to clipboard

Lines should break between words

Open VFDan opened this issue 3 years ago • 2 comments

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 avatar Apr 22 '21 01:04 VFDan

https://github.com/xiBread/bd-contributions/blob/1be95b118ae78f3f46941df24c68403de9533e86/BetterCodeblocks/BetterCodeblocks.plugin.js#L441-L444

should be

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

Ascor8522 avatar Nov 12 '21 03:11 Ascor8522

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;
} 

Glaived avatar Nov 12 '21 03:11 Glaived