Skip to content

Commit

Permalink
Fix long words and links causing horizontal overflow on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaGanchev committed Sep 25, 2023
1 parent 6cf5c7d commit eca8316
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/RichText.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
color: var(--color)
}
:global(.markup-content a, .markup-content p, .markup-content span) {
overflow-wrap: anywhere;
word-wrap: anywhere;
hyphens: auto;
}
:global(.markup-content img) {
object-fit: contain;
width: 100%;
Expand Down

0 comments on commit eca8316

Please sign in to comment.