Skip to content

A platform for community discussion. Free, open, simple.

UX: Break very long words in titles within menus

Kris8a527567d3da
diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scss
index ca1f2b530fd..08ecec45a88 100644
--- a/app/assets/stylesheets/common/base/menu-panel.scss
+++ b/app/assets/stylesheets/common/base/menu-panel.scss
@@ -186,7 +186,7 @@
padding: 0;
> div {
overflow: hidden; // clears the text from wrapping below icons
-
+ overflow-wrap: anywhere;
// 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 04d47144632..64f44f7c6a6 100644
--- a/app/assets/stylesheets/common/base/search-menu.scss
+++ b/app/assets/stylesheets/common/base/search-menu.scss
@@ -265,6 +265,7 @@
}
.topic-title {
+ overflow-wrap: anywhere;
margin-right: 0.25em;
}
}