mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #3938 from scossar/popup-message-in-preview
Show composer messages popup overtop of preview window
This commit is contained in:
commit
931da1db18
3 changed files with 15 additions and 6 deletions
|
@ -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')
|
||||
})
|
||||
});
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue