mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix fold comment not work for CommentAreaV2 (fix #4905)
This commit is contained in:
parent
86fb4e0bc5
commit
3fb4a36688
@ -28,10 +28,13 @@
|
||||
}
|
||||
}
|
||||
.bili-comment-container {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
&.bili-dyn-comment .reply-list {
|
||||
padding-bottom: 8px !important;
|
||||
}
|
||||
.fold-comment {
|
||||
order: 1;
|
||||
font-size: 13px;
|
||||
}
|
||||
.at-panel,
|
||||
|
||||
@ -32,10 +32,7 @@ const entry = async () => {
|
||||
}
|
||||
if (feedsCardsManager.managerType === 'v2') {
|
||||
const getExistingComment = () => dq(card, commentSelector) as HTMLElement
|
||||
const isCommentAreaReady = () => {
|
||||
const existingComment = getExistingComment()
|
||||
return existingComment !== null && dq(existingComment, 'bili-comments')
|
||||
}
|
||||
const isCommentAreaReady = () => getExistingComment() !== null
|
||||
const handler = () => {
|
||||
const button = dq(card, '.bili-dyn-action.comment') as HTMLElement
|
||||
button?.click()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user