mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 18:39:06 +08:00
fix: Search results are on the right side (#6133)
This commit is contained in:
parent
2700ef7156
commit
a4e647ae1d
@ -236,8 +236,8 @@ export const ContentSearch = React.forwardRef<ContentSearchRef, Props>(
|
|||||||
if (shouldScroll) {
|
if (shouldScroll) {
|
||||||
highlightTextNode.scrollIntoView({
|
highlightTextNode.scrollIntoView({
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
block: 'center',
|
block: 'center'
|
||||||
inline: 'center'
|
// inline: 'center' 水平方向居中可能会导致 content 页面整体偏右, 使得左半部的内容被遮挡. 因此先注释掉该代码
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user