diff --git a/app/assets/javascripts/discourse/views/composer-messages.js.es6 b/app/assets/javascripts/discourse/views/composer-messages.js.es6 index 4541ff90c..f853653f7 100644 --- a/app/assets/javascripts/discourse/views/composer-messages.js.es6 +++ b/app/assets/javascripts/discourse/views/composer-messages.js.es6 @@ -18,8 +18,7 @@ export default Ember.CollectionView.extend({ }.on('init'), _initCss: function() { - var composerHeight = $('#reply-control').height() || 0; - this.$().css('bottom', composerHeight + "px").show(); + this.$().show(); }.on('didInsertElement') }) }); diff --git a/app/assets/javascripts/discourse/views/composer.js.es6 b/app/assets/javascripts/discourse/views/composer.js.es6 index c9abb4c23..a08ad2c76 100644 --- a/app/assets/javascripts/discourse/views/composer.js.es6 +++ b/app/assets/javascripts/discourse/views/composer.js.es6 @@ -24,7 +24,6 @@ const ComposerView = Ember.View.extend({ movePanels(sizePx) { $('#main-outlet').css('padding-bottom', sizePx); - $('.composer-popup').css('bottom', sizePx); // signal the progress bar it should move! this.appEvents.trigger("composer:resized"); diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss index 0bbb292b8..b4dd08904 100644 --- a/app/assets/stylesheets/desktop/compose.scss +++ b/app/assets/stylesheets/desktop/compose.scss @@ -21,6 +21,19 @@ } .composer-popup { + position: absolute; + width: calc(50% - 55px); + max-width: 724px; + top: 16px; + bottom: 16px; + left: 50%; + // The composer goes off-center at 1550px + @media (min-width: 1550px) { + left: calc(50% - 15px); + } + overflow-y: auto; + z-index: 110; + padding: 10px; box-shadow: 3px 3px 3px rgba(0,0,0, 0.34); background: dark-light-diff($highlight, $secondary, 50%, -80%); @@ -52,9 +65,6 @@ opacity: 1.0; } - padding: 10px; - width: 600px; - position: absolute; ul.topics { list-style: none; @@ -96,6 +106,7 @@ .composer-popup:nth-of-type(2) { margin-left: 10px; + width: calc(50% - 65px); } // hide cancel upload link on IE9 (not supported)