fix: Search results are on the right side (#6133)

This commit is contained in:
Rudbeckia.hirta.L 2025-05-18 22:21:13 +08:00 committed by GitHub
parent 68689692b0
commit 537ada3256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,8 +236,8 @@ export const ContentSearch = React.forwardRef<ContentSearchRef, Props>(
if (shouldScroll) {
highlightTextNode.scrollIntoView({
behavior: 'smooth',
block: 'center',
inline: 'center'
block: 'center'
// inline: 'center' 水平方向居中可能会导致 content 页面整体偏右, 使得左半部的内容被遮挡. 因此先注释掉该代码
})
}
}