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 {
|
.bili-comment-container {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
&.bili-dyn-comment .reply-list {
|
&.bili-dyn-comment .reply-list {
|
||||||
padding-bottom: 8px !important;
|
padding-bottom: 8px !important;
|
||||||
}
|
}
|
||||||
.fold-comment {
|
.fold-comment {
|
||||||
|
order: 1;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.at-panel,
|
.at-panel,
|
||||||
|
|||||||
@ -32,10 +32,7 @@ const entry = async () => {
|
|||||||
}
|
}
|
||||||
if (feedsCardsManager.managerType === 'v2') {
|
if (feedsCardsManager.managerType === 'v2') {
|
||||||
const getExistingComment = () => dq(card, commentSelector) as HTMLElement
|
const getExistingComment = () => dq(card, commentSelector) as HTMLElement
|
||||||
const isCommentAreaReady = () => {
|
const isCommentAreaReady = () => getExistingComment() !== null
|
||||||
const existingComment = getExistingComment()
|
|
||||||
return existingComment !== null && dq(existingComment, 'bili-comments')
|
|
||||||
}
|
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
const button = dq(card, '.bili-dyn-action.comment') as HTMLElement
|
const button = dq(card, '.bili-dyn-action.comment') as HTMLElement
|
||||||
button?.click()
|
button?.click()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user