Skip to content

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

UX: truncate long topic tiles to prevent badges and date from wrapping

Joe72bd388ff799
diff --git a/app/assets/stylesheets/desktop/category-list.scss b/app/assets/stylesheets/desktop/category-list.scss
index 31f6a01ca85..4cdf6ea6a00 100644
--- a/app/assets/stylesheets/desktop/category-list.scss
+++ b/app/assets/stylesheets/desktop/category-list.scss
@@ -62,22 +62,23 @@
margin: 10px 0 0;
display: flex;
align-items: center;
- flex-wrap: wrap;
-
&:first-of-type {
margin-top: 13px;
}
-
a.last-posted-at,
a.last-posted-at:visited {
font-size: $font-down-1;
color: dark-light-choose($primary-medium, $secondary-high);
}
-
.topic-statuses .fa {
color: dark-light-choose($primary-medium, $secondary-high);
}
-
+ .title {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ flex: 0 1 auto;
+ }
.topic-post-badges .badge.new-posts,
.title {
margin-right: 5px;