From d6571ffbdd2a25e3e87012bd876d9f37e7e230fe Mon Sep 17 00:00:00 2001 From: pubuzhixing8 Date: Tue, 10 Dec 2024 18:30:56 +0800 Subject: [PATCH] fix(field-property-editor): add max-height and add overflow-y: auto for field-property-editor-panel #WIK-16855 (#180) --- .../field-property-editor.component.scss | 7 +++++++ packages/grid/src/services/field.service.ts | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 packages/grid/src/components/field-property-editor/field-property-editor.component.scss diff --git a/packages/grid/src/components/field-property-editor/field-property-editor.component.scss b/packages/grid/src/components/field-property-editor/field-property-editor.component.scss new file mode 100644 index 00000000..b870f74d --- /dev/null +++ b/packages/grid/src/components/field-property-editor/field-property-editor.component.scss @@ -0,0 +1,7 @@ +.ai-table-field-property-editor-panel { + height: auto; + max-height: 80vh; + .thy-popover-container { + overflow-y: auto; + } +} \ No newline at end of file diff --git a/packages/grid/src/services/field.service.ts b/packages/grid/src/services/field.service.ts index 8f7ccb1c..c5a41541 100644 --- a/packages/grid/src/services/field.service.ts +++ b/packages/grid/src/services/field.service.ts @@ -26,6 +26,8 @@ export class AITableGridFieldService { placement: 'bottomLeft', manualClosure: true, originActiveClass: undefined, + height: 'auto', + panelClass: 'ai-table-field-property-editor-panel', initialState: { aiTable, aiEditField: field,