diff --git a/src/components/modules/dashboard/comments/CommentContentCell.tsx b/src/components/modules/dashboard/comments/CommentContentCell.tsx index 6ebcea5b8c..7dc9498483 100644 --- a/src/components/modules/dashboard/comments/CommentContentCell.tsx +++ b/src/components/modules/dashboard/comments/CommentContentCell.tsx @@ -3,7 +3,6 @@ import type { CommentModel } from '@mx-space/api-client' import { CollectionRefTypes } from '@mx-space/api-client' -import { MotionButtonBase } from '~/components/ui/button' import { RelativeTime } from '~/components/ui/relative-time' import { EllipsisHorizontalTextWithTooltip } from '~/components/ui/typography' import { clsxm } from '~/lib/helper' @@ -34,25 +33,28 @@ export const CommentContentCell: Component<{ comment: CommentModel }> = ( if (refType === CollectionRefTypes.Recently) return `${ref.text.slice(0, 20)}...` return ( - { - const url = await apiClient.proxy.helper('url-builder')(ref.id).get<{ - data: string - }>() - window.open(url?.data, '_blank') - }} - > - - {ref.title} - - +
+ + + {ref.title} + + +
{isWhispers && '悄悄说'}
+
+
) - }, [ref, refType]) + }, [isWhispers, ref, refType]) return (
- 于 {TitleEl} {isWhispers && '悄悄说'} + 于 {TitleEl}

{text}