Skip to content

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

UX: prevent timeline overflow in extreme cases (#15303)

Kris091ca9dbb1b8
diff --git a/app/assets/stylesheets/common/topic-timeline.scss b/app/assets/stylesheets/common/topic-timeline.scss
index ca1380b3cf7..671dcc7f35b 100644
--- a/app/assets/stylesheets/common/topic-timeline.scss
+++ b/app/assets/stylesheets/common/topic-timeline.scss
@@ -148,6 +148,9 @@
padding-right: 1.5em;
justify-content: flex-end;
.timeline-scroller-content {
+ box-sizing: border-box;
+ max-width: 100%;
+ overflow: hidden;
text-align: right;
padding-left: 0;
padding-right: 1em;
@@ -233,6 +236,9 @@
}
.timeline-scroller-content {
+ box-sizing: border-box;
+ max-width: 100%;
+ overflow: hidden;
padding-left: 1em;
position: absolute; // prevents text length from impacting width
}
@@ -257,6 +263,8 @@
}
.timeline-replies {
+ overflow: hidden;
+ overflow-wrap: break-word;
font-weight: bold;
}