From 3626af7bcaf289a5a8f64f92a0321110ffaf67fa Mon Sep 17 00:00:00 2001 From: fxpw Date: Sun, 18 Aug 2024 19:36:02 +0300 Subject: [PATCH] fix some styles --- css/conversation.css | 1 + js/conversation.js | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/css/conversation.css b/css/conversation.css index 6de2be7..7d9c296 100644 --- a/css/conversation.css +++ b/css/conversation.css @@ -17,6 +17,7 @@ padding: 10px; overflow-y: auto; max-height: calc(100% - 27%); + height: 58vh; /* max-height: calc(100% - 10%); */ /* Пример ограничения высоты контейнера, чтобы включить скроллинг */ } diff --git a/js/conversation.js b/js/conversation.js index 478ac91..8f8dc02 100644 --- a/js/conversation.js +++ b/js/conversation.js @@ -170,21 +170,21 @@ function createConversationBody(message) { if (!$(this).hasClass('summernote-initialized')) { $("#conversationTextToSendInput").summernote({ tabsize: 3, - height: 100, - + height: 130, + // airMode: true, toolbar: [ // ['style', ['style']], ['font', ['bold', 'italic', 'underline', 'clear']], - ['fontname', ['fontname']], - ['fontsize', ['fontsize']], - ['color', ['color']], - ['para', ['ul', 'ol', 'paragraph']], + // ['fontname', ['fontname']], + // ['fontsize', ['fontsize']], + // ['color', ['color']], + ['para', ['ul', 'ol']], // ['height', ['height']], // ['table', ['table']], // ['insert', ['link', 'picture', 'video']], // ['view', ['fullscreen', 'codeview', 'help']] ], - fontsize: ['8', '9', '10', '11', '12', '14', '16', '18', '20', '22', '24', '26', '28', '36', '48', '64', '82', '150'], + // fontsize: ['8', '9', '10', '11', '12', '14', '16', '18', '20', '22', '24', '26', '28', '36', '48', '64', '82', '150'], callbacks: { onKeyup: function (event) { // console.log('Key is released:', event.keyCode);