mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 04:09:44 +08:00
UX: Prevent pre tag from making posts too wide (#17518)
This commit is contained in:
parent
4a996825fd
commit
e293afad4c
|
@ -470,6 +470,7 @@ blockquote {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
width: calc(#{$topic-body-width} + (#{$topic-body-width-padding} * 2));
|
width: calc(#{$topic-body-width} + (#{$topic-body-width-padding} * 2));
|
||||||
float: left;
|
float: left;
|
||||||
|
min-width: 0; // prevents some elements, like <pre>, from blowing out the width
|
||||||
position: relative;
|
position: relative;
|
||||||
border-top: 1px solid var(--primary-low);
|
border-top: 1px solid var(--primary-low);
|
||||||
padding: 12px 0 0 0;
|
padding: 12px 0 0 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user