Skip to content

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

UX: Prevent pre tag from making posts too wide (#17518)

Krise293afad4c76
diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss
index 8d631716913..9d4cc4933ee 100644
--- a/app/assets/stylesheets/desktop/topic-post.scss
+++ b/app/assets/stylesheets/desktop/topic-post.scss
@@ -470,6 +470,7 @@ blockquote {
.topic-body {
width: calc(#{$topic-body-width} + (#{$topic-body-width-padding} * 2));
float: left;
+ min-width: 0; // prevents some elements, like <pre>, from blowing out the width
position: relative;
border-top: 1px solid var(--primary-low);
padding: 12px 0 0 0;