mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
docs: remove custom scrollbar style (#38551)
https://github.com/ant-design/ant-design/issues/38463#issuecomment-1308806682
This commit is contained in:
parent
49aaa23691
commit
2f960df9e7
@ -72,27 +72,6 @@ const useStyle = () => {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding-inline: 4px;
|
padding-inline: 4px;
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 8px;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* background of the scrollbar except button or resizer */
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* scrollbar itself */
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background-color: ${token.colorFill};
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* set button(top and bottom of the scrollbar) */
|
|
||||||
::-webkit-scrollbar-button {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
@ -144,11 +123,11 @@ const Content: FC<{ children: ReactNode }> = ({ children }) => {
|
|||||||
<div css={styles.tocWrapper}>
|
<div css={styles.tocWrapper}>
|
||||||
<div>
|
<div>
|
||||||
<Anchor css={styles.toc} affix={false} showInkInFixed>
|
<Anchor css={styles.toc} affix={false} showInkInFixed>
|
||||||
{anchorItems.map(item => (
|
{anchorItems.map((item) => (
|
||||||
<Anchor.Link href={`#${item.id}`} title={item.title} key={item.id}>
|
<Anchor.Link href={`#${item.id}`} title={item.title} key={item.id}>
|
||||||
{item.children
|
{item.children
|
||||||
?.filter(child => showDebug || !debugDemos.includes(child.id))
|
?.filter((child) => showDebug || !debugDemos.includes(child.id))
|
||||||
.map(child => (
|
.map((child) => (
|
||||||
<Anchor.Link
|
<Anchor.Link
|
||||||
href={`#${child.id}`}
|
href={`#${child.id}`}
|
||||||
title={
|
title={
|
||||||
|
Loading…
Reference in New Issue
Block a user