fix(ui): add delay and closeDelay props to Tooltip in SessionItem

Improve user experience by adding a small delay before showing tooltip and removing the close delay
This commit is contained in:
icarus 2025-09-27 18:24:13 +08:00
parent 4647688613
commit 9ec6e5f771

View File

@ -51,7 +51,9 @@ const SessionItem: FC<SessionItemProps> = ({ session, agentId, isDisabled, isLoa
return (
<Tooltip
content={t('chat.topics.delete.shortcut', { key: isMac ? '⌘' : 'Ctrl' })}
classNames={{ content: 'text-xs' }}>
classNames={{ content: 'text-xs' }}
delay={500}
closeDelay={0}>
<div
role="button"
className={cn(