diff --git a/app/js/locales/en-us.json b/app/js/locales/en-us.json index 6f977a84..1db3056b 100644 --- a/app/js/locales/en-us.json +++ b/app/js/locales/en-us.json @@ -152,6 +152,9 @@ "media_modal_forward": "Forward", "media_modal_download": "Download", "media_modal_delete": "Delete", + "game_modal_share_game": "Share Game", + "game_modal_share_score": "Share Score", + "game_modal_bot_info": "by @{bot}", "error_browser_no_local_file_system_image_md": "Your browser doesn't support {moz-link: https://developer.mozilla.org/en-US/docs/Web/API/LocalFileSystem | LocalFileSystem} feature which is needed to display this image.\nPlease, install {chrome-link: http://google.com/chrome | Google Chrome} or use {telegram-link: https://telegram.org/ | mobile app} instead.", "error_image_download_failed": "Download failed", diff --git a/app/js/services.js b/app/js/services.js index 4ed3d294..4d56c2b2 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -1787,7 +1787,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) windowTemplateUrl: templateUrl('media_modal_layout'), controller: 'GameModalController', scope: scope, - windowClass: 'photo_modal_window' + windowClass: 'photo_modal_window mobile_modal' }) } @@ -1808,7 +1808,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) var game = wrapForHistory(gameID) var fullWidth = $(window).width() - (Config.Mobile ? 0 : 10) - var fullHeight = $($window).height() - (Config.Mobile ? 92 : 150) + var fullHeight = $($window).height() - (Config.Mobile ? 51 : 150) if (!Config.Mobile && fullWidth > 800) { fullWidth -= 208 diff --git a/app/less/mobile.less b/app/less/mobile.less index d786d74d..76935d8d 100644 --- a/app/less/mobile.less +++ b/app/less/mobile.less @@ -931,6 +931,11 @@ a.im_message_author_via { font-size: 12px; } } +.im_service_message a.im_message_author { + display: inline; + font-size: 13px; + font-weight: normal; +} .im_grouped_short a.im_message_from_photo, .im_grouped_short a.im_message_author, @@ -1352,6 +1357,11 @@ a.im_message_fwd_author { } } +.game_modal_wrap .modal-body { + padding: 0; +} + + .modal-content { .photo_modal_window &, .video_modal_window & { diff --git a/app/partials/mobile/game_modal.html b/app/partials/mobile/game_modal.html new file mode 100644 index 00000000..de81d25b --- /dev/null +++ b/app/partials/mobile/game_modal.html @@ -0,0 +1,45 @@ +
+ +
+ +
+ + + +