diff --git a/packages/design/src/card/style/index.ts b/packages/design/src/card/style/index.ts index e3aaa11d1..d78d2a9e6 100644 --- a/packages/design/src/card/style/index.ts +++ b/packages/design/src/card/style/index.ts @@ -63,6 +63,11 @@ export const genCardStyle: GenerateStyle = (token: CardToken): CSSObj padding: `0 ${paddingSM}px ${paddingSM}px ${paddingSM}px`, }, }, + [`${componentCls}-small${componentCls}-contain-tabs >${componentCls}-head`]: { + [`${componentCls}-head-title, ${componentCls}-head-extra`]: { + paddingTop: token.paddingXS, + }, + }, [`${componentCls}${componentCls}-contain-tabs`]: { [`${componentCls}-head`]: genTagStyle({ ...token, diff --git a/packages/design/src/switch/demo/size.tsx b/packages/design/src/switch/demo/size.tsx index adb5e77bd..4112202c9 100644 --- a/packages/design/src/switch/demo/size.tsx +++ b/packages/design/src/switch/demo/size.tsx @@ -3,9 +3,9 @@ import { Switch } from '@oceanbase/design'; const App: React.FC = () => ( <> - +
- + );