From c5114b3f87a850bca42dae0e4688f9f7bff15202 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 22 Jun 2024 16:51:41 +0800 Subject: [PATCH] docs: fix change-log button position (#49552) * docs: fix changelog button position * fix lint --- .../ComponentChangelog/ComponentChangelog.tsx | 15 ++------- .dumi/theme/slots/Content/index.tsx | 32 ++++++++++--------- 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx b/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx index 4a091ae3ca..0cbd4af607 100644 --- a/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx +++ b/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx @@ -28,16 +28,6 @@ function matchDeprecated(v: string): MatchDeprecatedResult { } const useStyle = createStyles(({ token, css }) => ({ - history: css` - position: absolute; - top: 0; - inset-inline-end: ${token.marginXS}px; - `, - - li: css` - // white-space: pre; - `, - ref: css` margin-inline-start: ${token.marginXS}px; `, @@ -75,7 +65,7 @@ export interface ComponentChangelogProps { const locales = { cn: { - full: '完整更新日志', + full: '查看完整日志', changelog: '更新日志', loading: '加载中...', empty: '暂无更新', @@ -213,7 +203,7 @@ const ComponentChangelog: React.FC = (props) => {