From 347c0831f8b4fbacf945cf0d2813b6ed2f31b724 Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 16 Oct 2022 15:19:37 +0800 Subject: [PATCH] fix: missing menuItemGroupCss --- .../client/src/schema-initializer/SchemaInitializer.tsx | 8 ++------ packages/core/client/src/schema-initializer/style.less | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/core/client/src/schema-initializer/SchemaInitializer.tsx b/packages/core/client/src/schema-initializer/SchemaInitializer.tsx index 664fd95d55..29324225cf 100644 --- a/packages/core/client/src/schema-initializer/SchemaInitializer.tsx +++ b/packages/core/client/src/schema-initializer/SchemaInitializer.tsx @@ -5,6 +5,7 @@ import classNames from 'classnames'; import React, { createContext, useContext, useState } from 'react'; import { Icon } from '../icon'; import { useCompile, useDesignable } from '../schema-component/hooks'; +import './style.less'; import { SchemaInitializerButtonProps, SchemaInitializerItemComponent, @@ -18,12 +19,7 @@ export const SchemaInitializerItemContext = createContext(null); export const SchemaInitializer = () => null; -const menuItemGroupCss = css` - .menuItemGroup { - max-height: 60vh; - overflow: auto; - } -`; +const menuItemGroupCss = 'nb-menu-item-group'; SchemaInitializer.Button = observer((props: SchemaInitializerButtonProps) => { const { diff --git a/packages/core/client/src/schema-initializer/style.less b/packages/core/client/src/schema-initializer/style.less index 3e449c361e..9089de7621 100644 --- a/packages/core/client/src/schema-initializer/style.less +++ b/packages/core/client/src/schema-initializer/style.less @@ -1,4 +1,4 @@ -.menuItemGroup { +.nb-menu-item-group { max-height: 60vh; overflow: auto; }