diff --git a/app/frontend/src/components/chatui/HistoryPanel.tsx b/app/frontend/src/components/chatui/HistoryPanel.tsx index b36586b9..4c14399a 100644 --- a/app/frontend/src/components/chatui/HistoryPanel.tsx +++ b/app/frontend/src/components/chatui/HistoryPanel.tsx @@ -43,113 +43,106 @@ export function HistoryPanel({ ); return ( -
+
-
-

- Chats -

- +
+

Chats

+ {conversations.length}
-
-
- setSearchQuery(e.target.value)} - /> - -
+
+ setSearchQuery(e.target.value)} + /> +
- - {filteredConversations.map((conversation) => ( -
onSelectConversation(conversation.id)} - > -
- - {editingId === conversation.id ? ( - setEditTitle(e.target.value)} - onBlur={() => handleEditSave(conversation.id)} - onKeyPress={(e) => - e.key === "Enter" && handleEditSave(conversation.id) - } - className="h-6 text-sm" - autoFocus - /> - ) : ( - - {searchQuery && - conversation.title - .toLowerCase() - .includes(searchQuery.toLowerCase()) - ? conversation.title - .split(new RegExp(`(${searchQuery})`, "gi")) - .map((part, i) => - part.toLowerCase() === searchQuery.toLowerCase() ? ( - - {part} - - ) : ( - part - ), - ) - : conversation.title} - - )} -
-
- - + +
+ {filteredConversations.map((conversation) => ( +
onSelectConversation(conversation.id)} + > +
+ + {editingId === conversation.id ? ( + setEditTitle(e.target.value)} + onBlur={() => handleEditSave(conversation.id)} + onKeyPress={(e) => + e.key === "Enter" && handleEditSave(conversation.id) + } + className="h-6 text-sm bg-[#2A2A2A] border-0 focus:ring-2 focus:ring-[#7C68FA]" + autoFocus + /> + ) : ( + + {searchQuery && + conversation.title + .toLowerCase() + .includes(searchQuery.toLowerCase()) + ? conversation.title + .split(new RegExp(`(${searchQuery})`, "gi")) + .map((part, i) => + part.toLowerCase() === searchQuery.toLowerCase() ? ( + + {part} + + ) : ( + part + ), + ) + : conversation.title} + + )} +
+
+ + +
-
- ))} + ))} +
-
+