Skip to content

Commit

Permalink
Better default word-break/hyphenation behaviour. Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
izzy committed Jul 12, 2022
1 parent bc39610 commit 778a872
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chat.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down Expand Up @@ -46,7 +46,10 @@
animation: append-animate .3s linear;
transition: max-height 0.3s ease-out;
height: auto;
word-break: break-all;
word-break: normal;
overflow-wrap: break-word;
hyphens: auto;
hyphenate-character: "»";
}

.msg-badges {
Expand Down Expand Up @@ -141,7 +144,6 @@
.chat-message {
margin-left: 1rem;
float: left;
word-break: normal;
}

.msg-user, .msg-text {
Expand Down

0 comments on commit 778a872

Please sign in to comment.