Skip to content

Use hyphens to separate words properly

Hannes Heine requested to merge pr1452head into pr1452base

Created by: Tirokk

alina-beck Authored by alina-beck Merged


🍰 Pullrequest

Uses hyphenation for

  • post titles
  • post content
  • user description
  • am I missing something?

This solution does not work for all languages in all browsers on all operating systems (it's complicated 😏) – as a fallback words will still break in random places when they would otherwise overflow.

Setting hyphens to auto also means that all words can potentially break, not just the very long ones overflowing the container. Unfortunately at this point this is a binary setting in CSS (can be either on or off) but there is a property in planning that would allow us to set a hyphenation threshold. I hope this will be implemented soon! Until then...

Issues

Merge request reports