fix: client blocks responsive + textarea scroll fix + max-height 200px
This commit is contained in:
parent
2b86992bd3
commit
d0fd0d8d4a
@ -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 {
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
// Авто-сгенерировано: postbuild.js
|
||||
import '/deal/assets/index-Dl79LV36.js';
|
||||
import '/deal/assets/index-sIFZ72XQ.js';
|
||||
1
deal/assets/index-YuRJ4ONk.css
Normal file
1
deal/assets/index-YuRJ4ONk.css
Normal file
File diff suppressed because one or more lines are too long
3532
deal/assets/index-sIFZ72XQ.js
Normal file
3532
deal/assets/index-sIFZ72XQ.js
Normal file
File diff suppressed because one or more lines are too long
15
js/main.js
15
js/main.js
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user