Skip to content

Commit 1a6e3ce

Browse files
committed
fix: make usernames clickable links to user profiles
1 parent fd3ae76 commit 1a6e3ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@ const CommentTree: React.FC<CommentProps> = ({ comments, sub = false }) => {
113113
}),
114114
}}
115115
>
116-
<span className='comment-item-username'>
116+
<a
117+
className='comment-item-username'
118+
href={`https://space.bilibili.com/${comment.member.mid}`}
119+
target='_blank'
120+
>
117121
{comment.member.uname}
118-
</span>
122+
</a>
119123
<Highlighter
120124
className='comment-item-message'
121125
highlightClassName='comment-item-highlight'

0 commit comments

Comments
 (0)