diff --git a/app/assets/javascripts/discourse/views/poster_expansion_view.js b/app/assets/javascripts/discourse/views/poster_expansion_view.js index dffcbbf38b6..62c175246fe 100644 --- a/app/assets/javascripts/discourse/views/poster_expansion_view.js +++ b/app/assets/javascripts/discourse/views/poster_expansion_view.js @@ -27,12 +27,6 @@ Discourse.PosterExpansionView = Discourse.View.extend({ position.left += $avatar.width() + 5; div.css(position); } - - var maxWidth = div.width(); - if (maxWidth < 250) { - maxWidth = 250; - } - div.css({ maxWidth: maxWidth }); } }); diff --git a/app/assets/stylesheets/desktop/poster_expansion.scss b/app/assets/stylesheets/desktop/poster_expansion.scss index 7d0061e993e..516a43f986d 100644 --- a/app/assets/stylesheets/desktop/poster_expansion.scss +++ b/app/assets/stylesheets/desktop/poster_expansion.scss @@ -5,6 +5,7 @@ #poster-expansion { position: absolute; + width: 460px; left: 20px; z-index: 990; box-shadow: 0 2px 6px $primary_border_color;