From 79beb25530cb97e0b78cf5353a8dc1d699723a95 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Sat, 11 Oct 2025 15:22:37 +0800 Subject: [PATCH] feat: add tooltips and improve delete button styling in CommentThread - Add compact tooltips to Delete, Resolve, Previous, and Next buttons - Change delete button hover to red background and text - Use existing i18n translations for tooltip content --- .../components/workflow/comment/thread.tsx | 89 ++++++++++++------- 1 file changed, 57 insertions(+), 32 deletions(-) diff --git a/web/app/components/workflow/comment/thread.tsx b/web/app/components/workflow/comment/thread.tsx index bb126cb1c5..a717482b67 100644 --- a/web/app/components/workflow/comment/thread.tsx +++ b/web/app/components/workflow/comment/thread.tsx @@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next' import { RiArrowDownSLine, RiArrowUpSLine, RiCheckboxCircleFill, RiCheckboxCircleLine, RiCloseLine, RiDeleteBinLine, RiMoreFill } from '@remixicon/react' import Avatar from '@/app/components/base/avatar' import Divider from '@/app/components/base/divider' +import Tooltip from '@/app/components/base/tooltip' import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger } from '@/app/components/base/portal-to-follow-elem' import cn from '@/utils/classnames' import { useFormatTimeFromNow } from '@/hooks/use-format-time-from-now' @@ -271,43 +272,67 @@ export const CommentThread: FC = memo(({
{t('workflow.comments.panelTitle')}
- - + + - {comment.resolved ? : } - + + - - + + - - + +