diff --git a/app/js/services.js b/app/js/services.js index f0611a90..c34ebcc6 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2424,6 +2424,10 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) if (replyMarkup.wrapped) { return replyMarkup; } + var count = replyMarkup.rows && replyMarkup.rows.length || 0; + if (count > 0 && count <= 4 && !replyMarkup.pFlags.resize) { + replyMarkup.splitCount = count; + } replyMarkup.wrapped = true; angular.forEach(replyMarkup.rows, function (markupRow) { angular.forEach(markupRow.buttons, function (markupButton) { diff --git a/app/less/app.less b/app/less/app.less index 3500c9b6..1afc53ae 100644 --- a/app/less/app.less +++ b/app/less/app.less @@ -2086,6 +2086,19 @@ a.im_message_fwd_photo { font-size: 13px; margin: 0; padding: 6px 6px; + + .reply_markup_h1 & { + height: 170px; + } + .reply_markup_h2 & { + height: 81px; + } + .reply_markup_h3 & { + height: 51px; + } + .reply_markup_h4 & { + height: 36px; + } } .reply_markup_button:hover { color: #3a6d99; diff --git a/app/partials/desktop/reply_markup.html b/app/partials/desktop/reply_markup.html index cf6c353d..d4ceebd1 100644 --- a/app/partials/desktop/reply_markup.html +++ b/app/partials/desktop/reply_markup.html @@ -1,5 +1,5 @@