From 8f3dc75eed80702e54b4ce4dc8f17586f1a327ea Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 10 Aug 2017 00:20:05 +0200 Subject: [PATCH] Added channel profile to mobile --- app/js/lib/{schema.tl.txt => schema.tl} | 0 app/js/locales/en-us.json | 2 + app/less/mobile.less | 8 ++ app/partials/mobile/channel_modal.html | 152 ++++++++++++++++++++++++ app/partials/mobile/chat_modal.html | 7 +- app/partials/mobile/im.html | 2 +- 6 files changed, 168 insertions(+), 3 deletions(-) rename app/js/lib/{schema.tl.txt => schema.tl} (100%) create mode 100644 app/partials/mobile/channel_modal.html diff --git a/app/js/lib/schema.tl.txt b/app/js/lib/schema.tl similarity index 100% rename from app/js/lib/schema.tl.txt rename to app/js/lib/schema.tl diff --git a/app/js/locales/en-us.json b/app/js/locales/en-us.json index bbb2ea28..847b82ff 100644 --- a/app/js/locales/en-us.json +++ b/app/js/locales/en-us.json @@ -23,6 +23,7 @@ "group_modal_menu_delete_group": "Delete and exit", "group_modal_menu_clear_history": "Clear history", "group_modal_delete_group": "Delete group", + "group_modal_join": "Join group", "group_modal_settings": "Settings", "group_modal_notifications": "Notifications", "group_modal_menu_share_link": "Invite to group via link", @@ -40,6 +41,7 @@ "channel_modal_description": "Description", "channel_modal_share_link": "Share link", "channel_modal_share_loading": "Loading{dots}", + "channel_modal_menu_edit": "Edit channel", "channel_modal_join": "Join channel", "channel_modal_add_member": "Invite members", "channel_modal_leave_channel": "Leave channel", diff --git a/app/less/mobile.less b/app/less/mobile.less index 53d3b5a5..4586fdd8 100644 --- a/app/less/mobile.less +++ b/app/less/mobile.less @@ -574,6 +574,9 @@ html { .audio_player_button { margin-right: 8px; } +.audio_player_volume_slider .tg_slider_wrap { + display: none; +} .im_message_body_media { .im_message_document, @@ -1329,6 +1332,11 @@ a.im_message_fwd_author { &_modal_section_value { font-size: 15px; padding: 0 12px; + + overflow: hidden; + text-overflow: ellipsis; + display: inline-block; + width: 100%; } &_modal_section_body { diff --git a/app/partials/mobile/channel_modal.html b/app/partials/mobile/channel_modal.html new file mode 100644 index 00000000..e1c397fc --- /dev/null +++ b/app/partials/mobile/channel_modal.html @@ -0,0 +1,152 @@ +
+ +
+ +
+ + + +
diff --git a/app/partials/mobile/chat_modal.html b/app/partials/mobile/chat_modal.html index e3e63aad..8624bd16 100644 --- a/app/partials/mobile/chat_modal.html +++ b/app/partials/mobile/chat_modal.html @@ -20,6 +20,9 @@
  • +
  • + +
  • @@ -71,12 +74,12 @@
    - +
    - +
    diff --git a/app/partials/mobile/im.html b/app/partials/mobile/im.html index 3d7e3732..e84c656e 100644 --- a/app/partials/mobile/im.html +++ b/app/partials/mobile/im.html @@ -139,7 +139,7 @@
    - +