Skip to content

Commit cdf0d0e

Browse files
committed
fix: align username style with official
1 parent 1a6e3ce commit cdf0d0e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/App.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@
7474
}
7575

7676
#comment-search-root .comment-item-username {
77-
font-size: 12px;
78-
font-weight: bold;
77+
font-size: var(--bili-comments-font-size-name);
7978
margin-bottom: 4px;
80-
color: #61666d;
8179
margin-right: 12px;
80+
color: #FB7299;
81+
&[data-vip='0'] {
82+
color: var(--text2);
83+
}
8284
}
8385

8486
#comment-search-root .comment-item-message {

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const CommentTree: React.FC<CommentProps> = ({ comments, sub = false }) => {
117117
className='comment-item-username'
118118
href={`https://space.bilibili.com/${comment.member.mid}`}
119119
target='_blank'
120+
data-vip={comment.member.vip.vipType}
120121
>
121122
{comment.member.uname}
122123
</a>

0 commit comments

Comments
 (0)