Browse Source

Improved games on mobile

master
Igor Zhukov 8 years ago
parent
commit
77da222ee5
  1. 1
      app/js/lib/utils.js
  2. 11
      app/less/mobile.less
  3. 4
      app/partials/desktop/message_attach_game.html
  4. 8
      app/partials/mobile/message_service.html

1
app/js/lib/utils.js

@ -383,6 +383,7 @@ function templateUrl (tplName) { @@ -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',

11
app/less/mobile.less

@ -584,6 +584,17 @@ html { @@ -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;

4
app/partials/desktop/message_attach_game.html

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
<div class="im_message_webpage_wrap clearfix">
<div class="im_message_game">
<div class="im_message_webpage_wrap clearfix">
<div class="im_message_webpage_photo">
<div class="im_message_webpage_title">
<a href="" ng-click="openGame()" target="_blank" rel="noopener noreferrer" ng-bind-html="media.game.rTitle"></a>
@ -14,4 +15,5 @@ @@ -14,4 +15,5 @@
/>
</a>
</div>
</div>
</div>

8
app/partials/mobile/message_service.html

@ -30,6 +30,14 @@ @@ -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>

Loading…
Cancel
Save