diff --git a/src/renderer/src/components/DragableList/index.tsx b/src/renderer/src/components/DragableList/index.tsx index 5d9acc94..05ed09c4 100644 --- a/src/renderer/src/components/DragableList/index.tsx +++ b/src/renderer/src/components/DragableList/index.tsx @@ -51,7 +51,7 @@ const DragableList: FC> = ({ const id = item.id || item return ( - {(provided, snapshot) => ( + {(provided) => (
> = ({ style={{ ...listStyle, ...provided.draggableProps.style, - marginBottom: index === list.length - 1 && !snapshot.isDragging ? 0 : 8 + marginBottom: 8 }}> {children(item, index)}
diff --git a/src/renderer/src/pages/home/Tabs/AssistantsTab.tsx b/src/renderer/src/pages/home/Tabs/AssistantsTab.tsx index 4eee98a6..efb8c13b 100644 --- a/src/renderer/src/pages/home/Tabs/AssistantsTab.tsx +++ b/src/renderer/src/pages/home/Tabs/AssistantsTab.tsx @@ -153,7 +153,7 @@ const Assistants: FC = ({ }} {!dragging && ( - + {t('chat.add.assistant.title')}