Improved games on mobile

This commit is contained in:
Igor Zhukov 2016-11-10 13:25:58 +03:00
parent e7345f72cd
commit 77da222ee5
4 changed files with 36 additions and 14 deletions

View File

@ -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',

View File

@ -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;

View File

@ -1,3 +1,4 @@
<div class="im_message_game">
<div class="im_message_webpage_wrap clearfix">
<div class="im_message_webpage_photo">
<div class="im_message_webpage_title">
@ -15,3 +16,4 @@
</a>
</div>
</div>
</div>

View File

@ -30,6 +30,14 @@
<span ng-switch-when="messageActionChannelEditPhoto" my-i18n="message_service_changed_channel_photo"></span>
<span ng-switch-when="messageActionChannelDeletePhoto" my-i18n="message_service_removed_channel_photo"></span>
<span ng-switch-when="messageActionGameScore" my-i18n="message_service_scored_game">
<my-i18n-param name="scored">
<ng-pluralize count="historyMessage.action.score"
when="message_service_scored_X"></ng-pluralize>
</my-i18n-param>
<my-i18n-param name="message"><a class="im_service_message_pinned" my-pinned-message="::historyMessage.reply_to_mid"></a></my-i18n-param>
</span>
<span ng-switch-when="messageActionPinMessage" my-i18n="message_service_pinned_message">
<my-i18n-param name="message"><a my-pinned-message="historyMessage.reply_to_mid"></a></my-i18n-param>
</span>