From c8ef691eb0a34d53d2fdd043d4ee6f359474c055 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 8 Feb 2016 17:23:19 +0000 Subject: [PATCH] Improvements for mobile --- app/js/directives.js | 2 +- app/js/services.js | 4 ++-- app/less/app.less | 2 ++ app/less/mobile.less | 22 ++++++++++++++++++---- app/partials/desktop/im.html | 2 +- app/partials/mobile/full_gif.html | 26 +++++++++++--------------- app/partials/mobile/im.html | 7 ++++--- app/partials/mobile/message.html | 4 ++-- 8 files changed, 41 insertions(+), 28 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index 41c6752b..5695b226 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1539,7 +1539,7 @@ angular.module('myApp.directives', ['myApp.filters']) } $scope.$on('inline_results', function (e, inlineResults) { - var w = (messageFieldWrap.offsetWidth || 382) - 2; + var w = Config.Mobile ? $(window).width() : (messageFieldWrap.offsetWidth || 382) - 2; var h = 80; if (inlineResults) { AppInlineBotsManager.regroupWrappedResults(inlineResults.results, w, h); diff --git a/app/js/services.js b/app/js/services.js index 86d147e1..dbe0946c 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2755,8 +2755,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) thumbW = realW; } var result = results[i + j]; - result.thumbW = Math.floor(thumbW); - result.thumbH = Math.floor(thumbH); + result.thumbW = Math.floor(thumbW) - 2; + result.thumbH = Math.floor(thumbH) - 2; }); i += rowCnt; diff --git a/app/less/app.less b/app/less/app.less index 09834ebd..4769cec7 100644 --- a/app/less/app.less +++ b/app/less/app.less @@ -2878,6 +2878,7 @@ a.composer_emoji_btn { background: #FFF; display: none; position: absolute; + z-index: 10; border: 0; .box-shadow(0px 1px 1px 0px rgba(60,75,87,0.27)); @@ -3170,6 +3171,7 @@ _:-ms-lang(x), .composer_rich_textarea:empty:focus:before { .inline_result_gif, .inline_result_photo { display: inline-block; + padding: 1px; } .inline_result_article { display: block; diff --git a/app/less/mobile.less b/app/less/mobile.less index b554febb..3e6e2a05 100644 --- a/app/less/mobile.less +++ b/app/less/mobile.less @@ -885,15 +885,18 @@ a.im_message_from_photo { margin-left: -45px; } } - -.im_message_author, .im_message_author_via { + display: block; + font-size: 13px; + font-weight: normal; + margin-bottom: 3px; +} +.im_message_author { display: none; } .im_history_messages_group { - a.im_message_author, - .im_message_author_via { + a.im_message_author { display: inline; font-size: 13px; font-weight: normal; @@ -1797,6 +1800,12 @@ a.media_modal_date:hover { padding-right: 35px; } } +.im_inline_placeholder_wrap { + font-size: 15px; + line-height: 17px; + padding: 6px 7px; + top: 0; +} .im_send_field_panel { position: relative; } @@ -1810,4 +1819,9 @@ a.media_modal_date:hover { } .im_send_keyboard_wrap { padding: 0 5px; +} + +.composer_progress_icon { + right: 6px; + top: 4px; } \ No newline at end of file diff --git a/app/partials/desktop/im.html b/app/partials/desktop/im.html index 38cd4d99..0b3b36cf 100644 --- a/app/partials/desktop/im.html +++ b/app/partials/desktop/im.html @@ -94,7 +94,7 @@
-
+
diff --git a/app/partials/mobile/full_gif.html b/app/partials/mobile/full_gif.html index 201f2f86..72f7b49f 100644 --- a/app/partials/mobile/full_gif.html +++ b/app/partials/mobile/full_gif.html @@ -2,6 +2,17 @@
+
+
+ + + + +
+
+
GIF
+
+
-
- -
-
-
-
-
- -
-
GIF
-
-
- -
- \ No newline at end of file diff --git a/app/partials/mobile/im.html b/app/partials/mobile/im.html index e15bf62b..23375340 100644 --- a/app/partials/mobile/im.html +++ b/app/partials/mobile/im.html @@ -80,7 +80,7 @@
-
+
@@ -135,7 +135,7 @@
-
+
@@ -151,9 +151,10 @@
+
- +
diff --git a/app/partials/mobile/message.html b/app/partials/mobile/message.html index 4a01c77c..e22a4949 100644 --- a/app/partials/mobile/message.html +++ b/app/partials/mobile/message.html @@ -40,10 +40,10 @@
-
+
- +