From d5d95e2f53301a484f0c77e39648bf63a3895c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=D1=81=20=D0=A1=D1=83=D0=BB=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Wed, 30 Sep 2026 14:10:40 +0300 Subject: [PATCH] =?UTF-8?q?feat(chat):=20=D0=BC=D0=B5=D0=BD=D1=8E=20=D1=82?= =?UTF-8?q?=D1=80=D1=91=D1=85=20=D1=82=D0=BE=D1=87=D0=B5=D0=BA=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=B7=D0=B5=D1=80=D0=B5=20=D0=BE?= =?UTF-8?q?=D0=B1=D1=8B=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=87=D0=B0=D1=82?= =?UTF-8?q?=D0=B0=20=E2=80=94=20=D0=BA=D0=B0=D0=BA=20=D0=B2=20=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Кнопки «Прикрепить файл» и «Создать опрос» в мессенджере спрятаны за иконку MoreVertical (DropdownMenu) — единый вид композера в обоих чатах (в чате задачи сделано ранее, f6e3e19). --- client/src/pages/Chat.tsx | 52 ++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/client/src/pages/Chat.tsx b/client/src/pages/Chat.tsx index 1fd12ce..366233d 100644 --- a/client/src/pages/Chat.tsx +++ b/client/src/pages/Chat.tsx @@ -10,7 +10,14 @@ import { MessageSquare, Plus, Send, Reply, X, Check, Users, Link2, Paperclip, Loader2, ChevronLeft, ChevronDown, Bell, BellOff, BarChart2, + MoreVertical, } from 'lucide-react'; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from '@/components/ui/dropdown-menu'; import { PendingAttachmentList } from '@/components/chat/ChatAttachments'; import { cn } from '@/lib/utils'; import { PollCreateDialog } from '@/components/chat/PollCreateDialog'; @@ -634,26 +641,31 @@ export default function ChatPage() { minRows={1} maxRows={5} /> - - + {/* Кнопки «Прикрепить файл» и «Создать опрос» — за меню трёх + точек, как в чате задачи (единый вид композера) */} + + + + + + fileInputRef.current?.click()}> + + Прикрепить файл + + setPollDialogOpen(true)}> + + Создать опрос + + +