Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheets-ui): remove unnecessary className for EditorContainer (#5232)

白熱569aebabe0c4
diff --git a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
index fd77bd2995..05727d52ec 100644
--- a/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
+++ b/packages/sheets-formula-ui/src/views/formula-editor/search-function/SearchFunction.tsx
@@ -196,10 +196,12 @@ function SearchFunctionFactory(props: ISearchFunctionProps, ref: any) {
ref.current = v!;
}
}}
+ data-u-comp="sheets-formula-editor"
className={clsx(`
univer-m-0 univer-box-border univer-max-h-[400px] univer-w-[250px] univer-list-none
univer-overflow-y-auto univer-rounded-lg univer-bg-white univer-p-2 univer-leading-5 univer-shadow-md
univer-outline-none
+ dark:univer-bg-gray-900
`, borderClassName, scrollbarClassName)}
>
{searchList.map((item, index) => (
diff --git a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
index 4745e55e4f..1dc369340c 100644
--- a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
+++ b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
@@ -16,7 +16,6 @@
import type { KeyCode } from '@univerjs/ui';
import { DOCS_NORMAL_EDITOR_UNIT_ID_KEY, ICommandService, IContextService } from '@univerjs/core';
-import { borderClassName, clsx } from '@univerjs/design';
import { IEditorService } from '@univerjs/docs-ui';
import { DeviceInputEventType } from '@univerjs/engine-render';
import { ComponentManager, DISABLE_AUTO_FOCUS_KEY, MetaKeys, useDependency, useEvent, useObservable, useSidebarClick } from '@univerjs/ui';
@@ -138,11 +137,7 @@ export const EditorContainer: React.FC<ICellIEditorProps> = () => {
return (
<div
- className={clsx(`
- univer-absolute univer-left-[100px] univer-top-[200px] univer-z-10 univer-flex univer-h-[50px]
- univer-w-[100px]
- dark:!univer-bg-gray-700
- `, borderClassName)}
+ className="univer-absolute univer-z-10 univer-flex"
style={{
left: state.left,
top: state.top,