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

Hyphenate word when splitting a word over multiple lines #18618

Open
kittykat opened this issue Aug 18, 2021 · 3 comments
Open

Hyphenate word when splitting a word over multiple lines #18618

kittykat opened this issue Aug 18, 2021 · 3 comments
Labels
A-Timeline O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Papercuts Visible. Impactful. Predictable to action.

Comments

@kittykat
Copy link
Contributor

Steps to reproduce

  1. Have a 960 px wide screen, happen to have the right panel open, see:
    Screenshot from 2021-08-18 12-54-17

(Note the large amount of space between the text and icon on the right)

What happened?

The word which is split over two lines is not hyphenated

What did you expect?

When words are split, they should be hyphenated

Operating system

Arch Linux

Browser information

Chromium Version 92.0.4515.131 (Official Build)

URL for webapp

develop.element.io

Have you submitted a rageshake?

No

@kittykat kittykat added T-Defect Z-Papercuts Visible. Impactful. Predictable to action. labels Aug 18, 2021
@SimonBrandner SimonBrandner added O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist A-Timeline labels Aug 18, 2021
@t3chguy
Copy link
Member

t3chguy commented Oct 11, 2021

This has a bit more complexity because it depends on the language of the message, we can turn on hyphenation which would have the browser hyphenate/not based on your app/browser language settings, but for any polyglots this would fall apart when different rooms use different languages

Relevant doc https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens

@kittykat
Copy link
Contributor Author

I think failure for some cases is better than just wrapping text mid-word for everyone?

@t3chguy
Copy link
Member

t3chguy commented Oct 11, 2021

I think the mid-word wrap will only happen if the word is too long on its own for the line.
In the OP screenshot the viewport is tiny. They could opt to hide read receipts in Settings to recover some width.

Related #8716 #6488

@kittykat kittykat changed the title Hyphenate wordwhen splitting a word over multiple lines Hyphenate word when splitting a word over multiple lines Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Timeline O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Papercuts Visible. Impactful. Predictable to action.
Projects
None yet
Development

No branches or pull requests

3 participants