Skip to content

Commit

Permalink
Follow-up to 8a52756 for safari
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Apr 1, 2020
1 parent 771dec9 commit 8bd6938
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/common/base/menu-panel.scss
Expand Up @@ -187,6 +187,10 @@
> div {
overflow: hidden; // clears the text from wrapping below icons
overflow-wrap: anywhere;
@supports not (overflow-wrap: anywhere) {
word-break: break-word;
}

// Truncate items with more than 2 lines.
display: -webkit-box;
-webkit-line-clamp: 2;
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/common/base/search-menu.scss
Expand Up @@ -266,6 +266,9 @@

.topic-title {
overflow-wrap: anywhere;
@supports not (overflow-wrap: anywhere) {
word-break: break-word;
}
margin-right: 0.25em;
}
}
Expand Down

1 comment on commit 8bd6938

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.