Skip to content

Commit e70e982

Browse files
committed
fix: adapt to new dom structure (close #2)
1 parent 1aa8db3 commit e70e982

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#comment-search-root {
2-
margin-left: auto;
2+
float: right;
33
}
44

55
#comment-search-root button {

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function App() {
1616
const promiseRef = useRef<Promise<Reply[]> | null>(null)
1717

1818
return (
19-
<div>
19+
<>
2020
<dialog
2121
ref={dialogRef}
2222
onClick={(e) => {
@@ -74,7 +74,7 @@ export default function App() {
7474
>
7575
搜索评论
7676
</button>
77-
</div>
77+
</>
7878
)
7979
}
8080

src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function run() {
1212
return
1313
}
1414

15-
const container = assertEl(document.querySelector('ul.nav-bar'))
16-
root = document.createElement('li')
15+
const container = assertEl(document.querySelector('#commentapp'))
16+
root = document.createElement('div')
1717
root.id = id
1818
container.append(root)
1919

0 commit comments

Comments
 (0)