A platform for community discussion. Free, open, simple.
FIX: limits pre-line impact to tweet text (#15583)
Joffrey JAFFEUXf56eff23038b
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scssindex 2bc50de8bc7..3d7e95daa4d 100644--- a/app/assets/stylesheets/common/base/onebox.scss+++ b/app/assets/stylesheets/common/base/onebox.scss@@ -613,10 +613,8 @@ aside.onebox.twitterstatus .onebox-body {font-size: var(--font-down-1);}- .tweet {+ .tweet .tweet-description {white-space: pre-line;- top: calc(-1 * var(--font-0) * var(--line-height-large));- position: relative;}p,diff --git a/lib/onebox/templates/twitterstatus.mustache b/lib/onebox/templates/twitterstatus.mustacheindex 7f1dc251c49..13fe2cfafd9 100644--- a/lib/onebox/templates/twitterstatus.mustache+++ b/lib/onebox/templates/twitterstatus.mustache@@ -3,7 +3,7 @@<div class="twitter-screen-name"><a href="{{link}}" target="_blank" rel="noopener">@{{screen_name}}</a></div><div class="tweet">- {{{tweet}}}+ <span class="tweet-description">{{{tweet}}}</span>{{#quoted_tweet}}<div class="quoted"><a class="quoted-link" href="{{quoted_link}}">