From d1a8376e094fe6e0607d4dcd3318d4b9c2d84302 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 15 Apr 2024 10:27:51 +0800 Subject: [PATCH] site: fix different font-size between jsx demo and tsx demo (#48448) --- .dumi/theme/common/LiveCode.tsx | 2 +- components/grid/demo/playground.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dumi/theme/common/LiveCode.tsx b/.dumi/theme/common/LiveCode.tsx index 060fe4fec6..d521a55e82 100644 --- a/.dumi/theme/common/LiveCode.tsx +++ b/.dumi/theme/common/LiveCode.tsx @@ -27,7 +27,7 @@ const useStyle = createStyles(({ token, css }) => { .dumi-default-source-code > pre, .dumi-default-source-code-scroll-content > pre { - font-size: 13px; + font-size: ${token.fontSize}px; line-height: 2; font-family: 'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; } diff --git a/components/grid/demo/playground.md b/components/grid/demo/playground.md index 865ba71398..6fd4ce39b9 100644 --- a/components/grid/demo/playground.md +++ b/components/grid/demo/playground.md @@ -20,7 +20,7 @@ A simple playground for column count and gutter. } #components-grid-demo-playground pre { padding: 8px 16px; - font-size: 13px; + font-size: 14px; background: #f9f9f9; border-radius: 6px; }