Skip to content

Commit

Permalink
site: update site scroll-bar style (#48755)
Browse files Browse the repository at this point in the history
* site: update site scroll-bar style

* site: update site scroll-bar style
  • Loading branch information
li-jia-nan committed May 3, 2024
1 parent 4424dec commit 8ef0a51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .dumi/theme/slots/Content/DocAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { useRouteMeta, useTabMeta } from 'dumi';
const useStyle = createStyles(({ token, css }) => {
const { antCls } = token;
return {
toc: css`
anchorToc: css`
scrollbar-width: thin;
scrollbar-color: unset;
${antCls}-anchor {
${antCls}-anchor-link-title {
font-size: ${token.fontSizeSM}px;
Expand Down Expand Up @@ -120,8 +122,8 @@ const DocAnchor: React.FC<DocAnchorProps> = ({ showDebug, debugDemos = [] }) =>
return (
<section className={styles.tocWrapper}>
<Anchor
className={styles.toc}
affix={false}
className={styles.anchorToc}
targetOffset={token.anchorTop}
showInkInFixed
items={anchorItems.map<AnchorLinkItemProps>(renderAnchorItem)}
Expand Down

0 comments on commit 8ef0a51

Please sign in to comment.