2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Fix text break in Firefox (#28063)

This commit is contained in:
Martijn Cuppens
2019-02-06 11:38:13 +01:00
committed by XhmikosR
parent 6ea000d2bc
commit 58470c0ac5
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -62,7 +62,10 @@
.text-decoration-none { text-decoration: none !important; } .text-decoration-none { text-decoration: none !important; }
.text-break { word-break: break-word !important; } .text-break {
word-break: break-word !important; // IE & < Edge 18
overflow-wrap: break-word !important;
}
// Reset // Reset
+1 -1
View File
@@ -68,7 +68,7 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
## Word break ## Word break
Prevent long strings of text from breaking your components' layout by using `.text-break` to set `word-break: break-word`. Prevent long strings of text from breaking your components' layout by using `.text-break` to set `overflow-wrap: break-word` (and `word-break: break-word` for IE & Edge compatibility).
{% capture example %} {% capture example %}
<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p> <p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>