Browse Source

Improved dropbox on mobile view

Closes #1017
master
Igor Zhukov 9 years ago
parent
commit
ff6525da35
  1. 8
      app/js/directives.js
  2. 8
      app/less/mobile.less

8
app/js/directives.js

@ -1728,7 +1728,9 @@ angular.module('myApp.directives', ['myApp.filters'])
if (e.type == 'dragenter' || e.type == 'dragover') { if (e.type == 'dragenter' || e.type == 'dragover') {
if (dragStateChanged) { if (dragStateChanged) {
$(emojiButton).hide(); if (!Config.Mobile) {
$(emojiButton).hide();
}
$(dropbox) $(dropbox)
.css({height: messageFieldWrap.offsetHeight + 2, width: messageFieldWrap.offsetWidth}) .css({height: messageFieldWrap.offsetHeight + 2, width: messageFieldWrap.offsetWidth})
.show(); .show();
@ -1742,7 +1744,9 @@ angular.module('myApp.directives', ['myApp.filters'])
} }
dragTimeout = setTimeout(function () { dragTimeout = setTimeout(function () {
$(dropbox).hide(); $(dropbox).hide();
$(emojiButton).show(); if (!Config.Mobile) {
$(emojiButton).show();
}
dragStarted = false; dragStarted = false;
dragTimeout = false; dragTimeout = false;
}, 300); }, 300);

8
app/less/mobile.less

@ -1806,6 +1806,14 @@ a.media_modal_date:hover {
padding: 6px 7px; padding: 6px 7px;
top: 0; top: 0;
} }
.im_send_dropbox_wrap {
padding: 5px 10px;
font-size: 15px;
line-height: 22px;
}
.im_send_field_panel { .im_send_field_panel {
position: relative; position: relative;
} }

Loading…
Cancel
Save