From 0a602e40783fa0d4236b5768db49864ea463e3f6 Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 8 Mar 2026 00:10:08 +0300 Subject: [PATCH] feat(web): redesign chat ui in telegram-like style - update overall layout for desktop/mobile chat navigation - restyle dialogs list, message bubbles and composer - add atmospheric background and unified panel styling --- web/src/components/ChatList.tsx | 43 ++++++++++++-- web/src/components/MessageComposer.tsx | 50 ++++++++-------- web/src/components/MessageList.tsx | 82 ++++++++++++++------------ web/src/components/NewChatPanel.tsx | 22 ++++--- web/src/index.css | 35 ++++++++++- web/src/pages/ChatsPage.tsx | 54 +++++++++++------ 6 files changed, 188 insertions(+), 98 deletions(-) diff --git a/web/src/components/ChatList.tsx b/web/src/components/ChatList.tsx index 4cf2654..ec822d1 100644 --- a/web/src/components/ChatList.tsx +++ b/web/src/components/ChatList.tsx @@ -3,22 +3,53 @@ import { NewChatPanel } from "./NewChatPanel"; export function ChatList() { const chats = useChatStore((s) => s.chats); + const messagesByChat = useChatStore((s) => s.messagesByChat); const activeChatId = useChatStore((s) => s.activeChatId); const setActiveChatId = useChatStore((s) => s.setActiveChatId); return ( -