tryoxiss / bonfire-web-client

A Hermod (name WIP) repository for a client side implementation compatible with our server side implementation.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Message box expands past max limit when not using spaces #63

Closed tryoxiss closed 1 year ago

tryoxiss commented 1 year ago

Describe the bug When typing a message longer than the message box allows for, and not using any spaces, then the message box defies its defined witdth and expands anyway???

To Reproduce Steps to reproduce the behavior:

  1. Go to the message box
  2. Type any long string not using spaces, e.g., aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  3. The message box expands wtf?

Expected behavior (optional) It would word-wrap despie not having a break point, since there are no good ones.

Screenshots (optional) If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Hardware: (optional)

Additional context Weirdly, it works slightly differently if you make the message box thinner than the standard area. (I used 100% - 8rem for testing)

tryoxiss commented 1 year ago

word-break: break-all; seems to fix it fine.