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 2700ef7156
commit a4e647ae1d

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 页面整体偏右, 使得左半部的内容被遮挡. 因此先注释掉该代码
})
}
}