From 77da222ee5b111cb11d54b6251c23ab5d546cad7 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 10 Nov 2016 13:25:58 +0300 Subject: [PATCH] Improved games on mobile --- app/js/lib/utils.js | 1 + app/less/mobile.less | 11 +++++++ app/partials/desktop/message_attach_game.html | 30 ++++++++++--------- app/partials/mobile/message_service.html | 8 +++++ 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/app/js/lib/utils.js b/app/js/lib/utils.js index 58950342..7432aedd 100644 --- a/app/js/lib/utils.js +++ b/app/js/lib/utils.js @@ -383,6 +383,7 @@ function templateUrl (tplName) { reply_message: 'desktop', message_body: 'desktop', message_media: 'desktop', + message_attach_game: 'desktop', forwarded_messages: 'desktop', chat_invite_link_modal: 'desktop', reply_markup: 'desktop', diff --git a/app/less/mobile.less b/app/less/mobile.less index 5a2df105..d786d74d 100644 --- a/app/less/mobile.less +++ b/app/less/mobile.less @@ -584,6 +584,17 @@ html { margin-top: 0; } + .im_message_game { + padding: 5px; + border-radius: 3px; + background: #f1f1f1; + margin-top: 0; + + .im_message_webpage_wrap { + margin-left: 3px; + } + } + .im_message_geopoint { width: 200px; height: 100px; diff --git a/app/partials/desktop/message_attach_game.html b/app/partials/desktop/message_attach_game.html index d32a5ed1..03b45302 100644 --- a/app/partials/desktop/message_attach_game.html +++ b/app/partials/desktop/message_attach_game.html @@ -1,17 +1,19 @@ -
-
-
- +
+
+
+
+ +
+
+
+ + [{{::media.game.title}}] +
-
-
- - [{{::media.game.title}}] -
diff --git a/app/partials/mobile/message_service.html b/app/partials/mobile/message_service.html index 9256633e..0641e226 100644 --- a/app/partials/mobile/message_service.html +++ b/app/partials/mobile/message_service.html @@ -30,6 +30,14 @@ + + + + + + +