Skip to content

Commit 5b2f72c

Browse files
committed
feat: show dialog title
1 parent ac53caa commit 5b2f72c

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/App.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,20 @@
2323
outline: none;
2424
overflow: hidden;
2525
}
26-
2726
#comment-search-root dialog .header {
2827
display: flex;
2928
align-items: center;
3029
}
3130

31+
#comment-search-root dialog .header h1 {
32+
font-size: 15px;
33+
color: var(--text1);
34+
}
35+
36+
#comment-search-root dialog .header h1 span {
37+
color: var(--text3);
38+
}
39+
3240
#comment-search-root dialog input {
3341
padding: 5px 10px;
3442
border: 1px solid var(--Ga1);

src/App.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Highlighter from 'react-highlight-words'
33
import { PAGE_LIMIT, fetchComments } from './api'
44
import { Reply } from './types/reply'
55
import { extractVideoId, formatDateTime } from './utils'
6+
import { version } from '../package.json'
67

78
import './App.css'
89

@@ -31,6 +32,10 @@ export default function App() {
3132
}}
3233
>
3334
<div className='header'>
35+
<h1>
36+
Bilibili Comment Search {''}
37+
<span>v{version}</span>
38+
</h1>
3439
<button onClick={() => dialogRef.current?.close()}>X</button>
3540
</div>
3641
<input
@@ -51,7 +56,10 @@ export default function App() {
5156
}
5257
}}
5358
/>
54-
<div className='note'>Note: 由于性能和 Rate Limit 的原因,目前仅会加载 {PAGE_LIMIT} 页评论,即 {PAGE_LIMIT} * 49 条评论,及其至多 3 条子评论。</div>
59+
<div className='note'>
60+
Note: 由于性能和 Rate Limit 的原因,目前仅会加载 {PAGE_LIMIT}{' '}
61+
页评论,即 {PAGE_LIMIT} * 49 条评论,及其至多 3 条子评论。
62+
</div>
5563
<div className='comment-tree'>
5664
<CommentTree comments={comments} />
5765
</div>

0 commit comments

Comments
 (0)