1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-08 16:20:40 +02:00

Plus icon when chat is closed

This commit is contained in:
Kamran Ahmed
2025-06-12 17:01:55 +01:00
parent 198e0387b9
commit f2268f8769

View File

@@ -79,7 +79,7 @@ export function ListChatHistory(props: ListChatHistoryProps) {
if (!isOpen) {
return (
<div className="absolute top-2 left-2 z-20">
<div className="absolute top-2 left-2 z-20 flex items-center gap-1">
<button
className="flex size-8 items-center justify-center rounded-lg p-1 hover:bg-gray-200"
onClick={() => {
@@ -88,6 +88,17 @@ export function ListChatHistory(props: ListChatHistoryProps) {
>
<PanelLeftIcon className="h-4.5 w-4.5" />
</button>
<button
className="flex size-8 items-center justify-center rounded-lg p-1 hover:bg-gray-200"
onClick={() => {
if (isMobile) {
setIsOpen(false);
}
onChatHistoryClick(null);
}}
>
<PlusIcon className="h-4.5 w-4.5" />
</button>
</div>
);
}