Skip to content

Commit

Permalink
Use overlow-wrap instead of word-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Mar 10, 2023
1 parent b2b12a6 commit 1229a2c
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 13 deletions.
8 changes: 5 additions & 3 deletions frontend/src/services/one-box.js
Expand Up @@ -50,9 +50,11 @@ export class OneBox {

const player = $(
'<iframe class="embed-responsive-item" frameborder="0" ' +
'src="' + url + '" ' +
'allow="encrypted-media; gyroscope; picture-in-picture" ' +
'allowfullscreen></iframe>'
'src="' +
url +
'" ' +
'allow="encrypted-media; gyroscope; picture-in-picture" ' +
"allowfullscreen></iframe>"
)
$(element).replaceWith(player)
player.wrap('<div class="embed-responsive embed-responsive-16by9"></div>')
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style/misago/dropdowns.less
Expand Up @@ -140,7 +140,7 @@

.category-picker .dropdown-menu > li > .btn-link {
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
}

// Stick to bottom on mobile
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style/misago/markup.less
Expand Up @@ -16,7 +16,7 @@
h5,
h6,
p {
word-wrap: break-word;
overflow-wrap: anywhere;
}
}

Expand Down
1 change: 1 addition & 0 deletions frontend/src/style/misago/material-icons.less
Expand Up @@ -26,6 +26,7 @@
letter-spacing: normal;
vertical-align: middle;
word-wrap: normal;
overflow-wrap: normal;
white-space: nowrap;
direction: ltr;

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style/misago/page-header.less
Expand Up @@ -17,5 +17,5 @@
.page-header h1 {
margin: 0;

overflow-wrap: break-word;
overflow-wrap: anywhere;
}
2 changes: 1 addition & 1 deletion frontend/src/style/misago/post-feed.less
Expand Up @@ -41,5 +41,5 @@

text-align: left;
white-space: normal;
word-wrap: break-word;
overflow-wrap: anywhere;
}
2 changes: 1 addition & 1 deletion frontend/src/style/misago/post.less
Expand Up @@ -210,7 +210,7 @@
}

.attachment-name {
word-wrap: break-word;
overflow-wrap: anywhere;
}

.row > div {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/style/misago/threads-lists.less
Expand Up @@ -82,7 +82,7 @@ a.threads-list-item-title {
font-size: @threads-list-title-size;

color: @thread-color;
overflow-wrap: break-word;
overflow-wrap: anywhere;
}
}

Expand All @@ -95,7 +95,7 @@ a.threads-list-item-title-sm {
&:hover,
&:visited {
color: @thread-read-color;
overflow-wrap: break-word;
overflow-wrap: anywhere;
}
}

Expand Down
2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/css/misago.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion misago/static/misago/js/misago.js.map

Large diffs are not rendered by default.

0 comments on commit 1229a2c

Please sign in to comment.