Browse Source

improved reply keyboard

master
Igor Zhukov 10 years ago
parent
commit
f49f7102cd
  1. 5
      app/less/app.less
  2. 41
      app/partials/desktop/im.html

5
app/less/app.less

@ -2060,6 +2060,11 @@ a.im_message_fwd_photo {
/*font-weight: bold;*/ /*font-weight: bold;*/
} }
.im_send_field_wkeyboard {
.im_send_buttons_wrap {
display: none;
}
}
.reply_markup_wrap { .reply_markup_wrap {
margin: 5px -2px 0; margin: 5px -2px 0;
} }

41
app/partials/desktop/im.html

@ -173,31 +173,34 @@
</div> </div>
<div class="im_send_field_wrap" ng-class="historyState.replyKeyboard._ == 'replyKeyboardMarkup' && !historyState.replyKeyboard.pFlags.hidden ? 'im_send_field_wkeyboard' : ''"> <div ng-class="historyState.replyKeyboard._ == 'replyKeyboardMarkup' && !historyState.replyKeyboard.pFlags.hidden ? 'im_send_field_wkeyboard' : ''">
<a class="composer_emoji_insert_btn"><i class="icon icon-emoji"></i></a>
<div class="im_send_dropbox_wrap" my-i18n="im_photos_drop_text"></div> <div class="im_send_field_wrap">
<textarea ng-model="draftMessage.text" placeholder="{{'im_message_field_placeholder' | i18n}}" class="form-control im_message_field no_outline" dir="auto"></textarea> <a class="composer_emoji_insert_btn"><i class="icon icon-emoji"></i></a>
</div>
<div class="im_send_keyboard_wrap" ng-if="historyState.replyKeyboard._ == 'replyKeyboardMarkup'">
<div my-reply-markup="historyState.replyKeyboard"></div>
</div>
<div class="clearfix">
<button type="submit" class="btn btn-md im_submit" my-i18n="im_submit_message"></button>
<div class="im_attach pull-left"> <div class="im_send_dropbox_wrap" my-i18n="im_photos_drop_text"></div>
<input type="file" class="im_attach_input" size="28" multiple="true" title="{{'im_attach_file_title' | i18n}}" /> <textarea ng-model="draftMessage.text" placeholder="{{'im_message_field_placeholder' | i18n}}" class="form-control im_message_field no_outline" dir="auto"></textarea>
<i class="icon icon-paperclip"></i>
</div> </div>
<div class="im_media_attach pull-left"> <div class="im_send_keyboard_wrap" ng-if="historyState.replyKeyboard._ == 'replyKeyboardMarkup'">
<input type="file" class="im_media_attach_input" size="28" multiple="true" accept="image/*, video/*, audio/*" title="{{'im_media_attach_title' | i18n}}"/> <div my-reply-markup="historyState.replyKeyboard"></div>
<i class="icon icon-camera"></i>
</div> </div>
<div class="composer_emoji_panel"></div> <div class="im_send_buttons_wrap clearfix">
<button type="submit" class="btn btn-md im_submit" my-i18n="im_submit_message"></button>
<div class="im_attach pull-left">
<input type="file" class="im_attach_input" size="28" multiple="true" title="{{'im_attach_file_title' | i18n}}" />
<i class="icon icon-paperclip"></i>
</div>
<div class="im_media_attach pull-left">
<input type="file" class="im_media_attach_input" size="28" multiple="true" accept="image/*, video/*, audio/*" title="{{'im_media_attach_title' | i18n}}"/>
<i class="icon icon-camera"></i>
</div>
<div class="composer_emoji_panel"></div>
</div>
</div> </div>
</form> </form>

Loading…
Cancel
Save