From 8bd693891a126063f7da45bf86e5e04fab67982d Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 31 Mar 2020 21:57:09 -0400 Subject: [PATCH] Follow-up to 8a52756 for safari --- app/assets/stylesheets/common/base/menu-panel.scss | 4 ++++ app/assets/stylesheets/common/base/search-menu.scss | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scss index 08ecec45a88..24fa749aeb7 100644 --- a/app/assets/stylesheets/common/base/menu-panel.scss +++ b/app/assets/stylesheets/common/base/menu-panel.scss @@ -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; diff --git a/app/assets/stylesheets/common/base/search-menu.scss b/app/assets/stylesheets/common/base/search-menu.scss index 64f44f7c6a6..c3b6813e2c4 100644 --- a/app/assets/stylesheets/common/base/search-menu.scss +++ b/app/assets/stylesheets/common/base/search-menu.scss @@ -266,6 +266,9 @@ .topic-title { overflow-wrap: anywhere; + @supports not (overflow-wrap: anywhere) { + word-break: break-word; + } margin-right: 0.25em; } }