Skip to content

Commit ab07121

Browse files
谢栋祥JackLian
authored andcommitted
fix: scroll pane content when search component
Signed-off-by: 谢栋祥 <dongxiang.xie@shopee.com>
1 parent 492918c commit ab07121

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/plugin-components-pane/src/index.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@
3333
line-height: 2;
3434
}
3535
}
36+
37+
> .filtered-content {
38+
overflow-y: overlay;
39+
overflow-x: hidden;
40+
}
3641
}

packages/plugin-components-pane/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default class ComponentPane extends React.Component<ComponentPaneProps, C
213213
}
214214
if (keyword) {
215215
return (
216-
<div ref={this.registerAdditive}>
216+
<div ref={this.registerAdditive} className={cx('filtered-content')}>
217217
{filter.map((group) => {
218218
const { categories } = group;
219219
{return categories.map((category) => {

0 commit comments

Comments
 (0)