diff --git a/backend/static/css/components/chat-detail.css b/backend/static/css/components/chat-detail.css
index 72757380..d2f67482 100644
--- a/backend/static/css/components/chat-detail.css
+++ b/backend/static/css/components/chat-detail.css
@@ -159,6 +159,12 @@ main.main {
border: 1px solid var(--bs-border-color);
background: var(--bs-body-bg);
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
+ overflow-y: hidden; /* Убираем полоску прокрутки */
+ scrollbar-width: none; /* Firefox */
+}
+
+.composer-textarea::-webkit-scrollbar {
+ display: none; /* Chrome, Safari, Edge */
}
.composer-textarea:focus {
diff --git a/backend/templates/communications/chat_detail.html b/backend/templates/communications/chat_detail.html
index 6fcc053a..8450e46f 100644
--- a/backend/templates/communications/chat_detail.html
+++ b/backend/templates/communications/chat_detail.html
@@ -194,6 +194,10 @@ document.addEventListener('DOMContentLoaded', function() {
const audioInput = document.getElementById('audioInput');
const attachmentPreview = document.getElementById('attachmentPreview');
+ const chatForm = document.getElementById('chatForm');
+
+ // Массив для хранения выбранных файлов
+ let selectedFiles = [];
// Обработчики кликов на пункты меню
attachDocument?.addEventListener('click', (e) => {
@@ -220,10 +224,23 @@ document.addEventListener('DOMContentLoaded', function() {
function handleFileSelect(files) {
if (!files || files.length === 0) return;
+ // Добавляем новые файлы к существующим
+ selectedFiles = [...selectedFiles, ...Array.from(files)];
+
+ updatePreview();
+ }
+
+ function updatePreview() {
+ if (selectedFiles.length === 0) {
+ attachmentPreview.classList.add('d-none');
+ attachmentPreview.innerHTML = '';
+ return;
+ }
+
attachmentPreview.classList.remove('d-none');
attachmentPreview.innerHTML = '';
- Array.from(files).forEach((file, index) => {
+ selectedFiles.forEach((file, index) => {
const fileItem = document.createElement('div');
fileItem.className = 'attachment-item d-flex align-items-center gap-2 p-2 border rounded mb-2';
@@ -240,11 +257,15 @@ document.addEventListener('DOMContentLoaded', function() {
${file.name}
${formatFileSize(file.size)}
-