From 500e91977c4530d9c75f744b1cd90a923b084af6 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sun, 8 Sep 2024 22:35:34 +0800 Subject: [PATCH] feat: Show all topics on drag start - Enforce the drag and drop functionality to show all topics on drag start. --- src/renderer/src/pages/home/Topics.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/pages/home/Topics.tsx b/src/renderer/src/pages/home/Topics.tsx index 68baa927..28ceee2d 100644 --- a/src/renderer/src/pages/home/Topics.tsx +++ b/src/renderer/src/pages/home/Topics.tsx @@ -100,9 +100,12 @@ const Topics: FC = ({ assistant: _assistant, activeTopic, setActiveTopic return ( setDraging(true)} + onDragStart={() => { + setShowAll(true) + setDraging(true) + }} onDragEnd={() => setDraging(false)}> {(topic) => { const isActive = topic.id === activeTopic?.id