fix: client blocks responsive + textarea scroll fix + max-height 200px

This commit is contained in:
mac 2026-06-16 17:20:03 +03:00
parent 2b86992bd3
commit d0fd0d8d4a
5 changed files with 3558 additions and 1 deletions

View File

@ -809,6 +809,7 @@
.clients .history__chat-form .submit {
text-align: right;
width: 47px;
vertical-align: bottom;
}
.clients .chat-form .message-input {
@ -1731,6 +1732,7 @@
.clients .history__chat-form .submit {
text-align: right;
width: 47px;
vertical-align: bottom;
}
.clients .chat-form .message-input {
@ -3364,15 +3366,22 @@
/* dashboard */
.clients .chat-form td {
vertical-align: bottom;
}
#clientChatTextAreaNew {
width: 99%;
border: 0;
height: auto;
max-height: 200px;
font-size: 17px;
font-family: "Lato";
resize: vertical;
min-height: 20px;
padding: 10px;
overflow-y: auto;
box-sizing: border-box;
}
.crm__dashboard {

View File

@ -1,2 +1,2 @@
// Авто-сгенерировано: postbuild.js
import '/deal/assets/index-Dl79LV36.js';
import '/deal/assets/index-sIFZ72XQ.js';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8213,6 +8213,21 @@ $('body').on('paste', '#custom_frequency, #installment_period', function (e) {
}
});
$(document).on("focus", "#clientChatTextAreaNew", function() {
var el = this;
if (el._wheelBound) return;
el._wheelBound = true;
el.addEventListener("wheel", function(e) {
var atTop = el.scrollTop === 0 && e.deltaY < 0;
var atBottom = el.scrollTop + el.clientHeight >= el.scrollHeight && e.deltaY > 0;
if (!atTop && !atBottom) {
e.stopPropagation();
el.scrollTop += e.deltaY;
e.preventDefault();
}
}, { capture: true });
});
$("body").on("click", ".zipal-radio-price, .destination-box", function() {
calculateZipalPrice();
calculatePackagePrice();