From 02fd30924b0d6f468fadc0b5cacf7abc1678e380 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 14 Jan 2026 22:13:08 +0100 Subject: [PATCH] changes --- components/Chat/ChatLayout.module.css | 14 +++++ components/Chat/ChatLayout.tsx | 79 ++++++++++++++------------- 2 files changed, 54 insertions(+), 39 deletions(-) diff --git a/components/Chat/ChatLayout.module.css b/components/Chat/ChatLayout.module.css index 8d546fe..23f63af 100644 --- a/components/Chat/ChatLayout.module.css +++ b/components/Chat/ChatLayout.module.css @@ -14,3 +14,17 @@ .chatScrollViewport { scroll-behavior: smooth; } + +/* Chat list item - cogwheel appears on hover */ +.chatListItem { + position: relative; +} + +.chatListItem .cogwheel { + opacity: 0; + transition: opacity 0.15s ease-in-out; +} + +.chatListItem:hover .cogwheel { + opacity: 1; +} diff --git a/components/Chat/ChatLayout.tsx b/components/Chat/ChatLayout.tsx index f83d225..230ca60 100644 --- a/components/Chat/ChatLayout.tsx +++ b/components/Chat/ChatLayout.tsx @@ -2,7 +2,6 @@ import { useEffect, useRef, useState } from 'react'; import { - IconDotsVertical, IconLayoutSidebar, IconMessage, IconPencil, @@ -649,12 +648,12 @@ export default function ChatLayout() { ) : ( // Normal display mode with NavLink - +
) } + rightSection={ + + + e.stopPropagation()} + > + + + + + } + onClick={() => handleRenameChat(chat.id)} + > + Rename + + } + onClick={() => handlePinChat(chat.id)} + > + {chat.pinned ? 'Unpin' : 'Pin'} + + + } + onClick={() => handleRemoveChat(chat.id)} + > + Remove + + + + } onClick={() => handleSelectChat(chat)} noWrap styles={{ root: { - flex: 1, minWidth: 0, borderRadius: 'var(--mantine-radius-sm)', padding: '6px 10px', @@ -678,41 +713,7 @@ export default function ChatLayout() { }, }} /> - - - e.stopPropagation()} - > - - - - - } - onClick={() => handleRenameChat(chat.id)} - > - Rename - - } - onClick={() => handlePinChat(chat.id)} - > - {chat.pinned ? 'Unpin' : 'Pin'} - - - } - onClick={() => handleRemoveChat(chat.id)} - > - Remove - - - - +
) ) ) : (