diff --git a/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx b/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx index f11cdc5c25bb..e385d4b6ef5c 100644 --- a/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx +++ b/.dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx @@ -31,7 +31,7 @@ const useStyle = createStyles(({ token, css }) => ({ history: css` position: absolute; top: 0; - inset-inline-end: 0; + inset-inline-end: ${token.marginXS}px; `, li: css` diff --git a/.dumi/theme/common/Link.tsx b/.dumi/theme/common/Link.tsx index 622723ff890c..4080541369bb 100644 --- a/.dumi/theme/common/Link.tsx +++ b/.dumi/theme/common/Link.tsx @@ -10,6 +10,8 @@ export interface LinkProps { onClick?: MouseEventHandler; } +nprogress.configure({ showSpinner: false }); + const Link = forwardRef>((props, ref) => { const { to, children, ...rest } = props; const [isPending, startTransition] = useTransition(); diff --git a/.dumi/theme/slots/Header/index.tsx b/.dumi/theme/slots/Header/index.tsx index 23f36efacbba..a1d00ff093f6 100644 --- a/.dumi/theme/slots/Header/index.tsx +++ b/.dumi/theme/slots/Header/index.tsx @@ -54,12 +54,11 @@ const useStyle = createStyles(({ token, css }) => { border: none; } - .nav-search-wrapper { - display: flex; - flex: auto; - } - .dumi-default-search-bar { + display: inline-flex; + align-items: center; + flex: auto; + margin: 0; border-inline-start: 1px solid rgba(0, 0, 0, 0.06); > svg { @@ -70,6 +69,7 @@ const useStyle = createStyles(({ token, css }) => { > input { height: 22px; border: 0; + max-width: calc(100vw - 768px); &:focus { box-shadow: none; @@ -85,6 +85,9 @@ const useStyle = createStyles(({ token, css }) => { background-color: rgba(150, 150, 150, 0.06); border-color: rgba(100, 100, 100, 0.2); border-radius: ${token.borderRadiusSM}px; + position: static; + top: unset; + transform: unset; } .dumi-default-search-popover { @@ -103,12 +106,11 @@ const useStyle = createStyles(({ token, css }) => { align-items: center; margin: 0; column-gap: ${token.paddingSM}px; + padding-inline-end: ${token.padding}px; + > * { flex: none; margin: 0; - &:last-child { - margin-inline-end: 40px; - } } `, dataDirectionIcon: css` @@ -405,11 +407,11 @@ const Header: React.FC = () => { - -
+ +
+ {!isMobile && menu}
- {!isMobile && menu}