Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(comment): fix the issue of comments in dark mode (#6881)

wpxp123456192e6070bae3
diff --git a/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx b/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx
index 36f379d469..a8a377ee61 100644
--- a/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx
+++ b/packages/thread-comment-ui/src/views/thread-comment-tree/index.tsx
@@ -143,6 +143,7 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {
univer-items-center univer-justify-center univer-rounded-sm
univer-text-base
hover:univer-bg-gray-50
+ dark:hover:!univer-bg-gray-800
`}
onClick={() => onReply(user)}
>
@@ -191,6 +192,7 @@ const ThreadCommentItem = (props: IThreadCommentItemProps) => {
univer-items-center univer-justify-center univer-rounded-sm
univer-text-base
hover:univer-bg-gray-50
+ dark:hover:!univer-bg-gray-800
`}
>
<MoreHorizontalIcon />