Skip to content

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

FIX: Wrap long event descriptions on narrow screens (#44154)

Gabriel Grubbae656c0306a53
diff --git a/plugins/discourse-events/assets/stylesheets/common/discourse-post-event.scss b/plugins/discourse-events/assets/stylesheets/common/discourse-post-event.scss
index 299c8bd46c2..84c2ce7aebb 100644
--- a/plugins/discourse-events/assets/stylesheets/common/discourse-post-event.scss
+++ b/plugins/discourse-events/assets/stylesheets/common/discourse-post-event.scss
@@ -334,7 +334,7 @@ $show-interested: inherit;
.event-chat-channel,
.event-invitees-avatars-container {
display: grid;
- grid-template-columns: 3em 1fr;
+ grid-template-columns: 3em minmax(0, 1fr);
column-gap: 1em;
align-items: center;
height: min-content;
@@ -362,6 +362,10 @@ $show-interested: inherit;
margin-top: 0.25em;
}
+ .event-description__text {
+ overflow-wrap: anywhere;
+ }
+
&.is-clamped .event-description__text {
@include line-clamp(3);
}