Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
defaultjacky authored Dec 18, 2024
2 parents 05a7d6b + 4e5e828 commit c50d28f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .dumi/theme/slots/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const Footer: React.FC = () => {
},
{
title: <FormattedMessage id="app.footer.chinamirror" />,
url: 'https://ant-design.antgroup.com',
url: 'https://ant-design-x.antgroup.com',
},
],
};
Expand Down
24 changes: 10 additions & 14 deletions .dumi/theme/slots/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import useMenu from '../../../hooks/useMenu';
import SiteContext from '../SiteContext';

const useStyle = createStyles(({ token, css }) => {
const { antCls, fontFamily, colorSplit } = token;
const { antCls, fontFamily, colorSplit, marginXXL, paddingXXS } = token;

return {
asideContainer: css`
min-height: 100%;
padding-bottom: 48px;
padding-bottom: ${marginXXL}px !important;
font-family: Avenir, ${fontFamily}, sans-serif;
padding: 0 ${paddingXXS}px;
&${antCls}-menu-inline {
${antCls}-menu-submenu-title h4,
Expand Down Expand Up @@ -92,18 +93,13 @@ const useStyle = createStyles(({ token, css }) => {
`,
mainMenu: css`
z-index: 1;
position: sticky;
top: ${token.headerHeight}px;
width: 100%;
height: 100%;
max-height: calc(100vh - ${token.headerHeight}px);
overflow: hidden;
scrollbar-width: thin;
scrollbar-color: unset;
.ant-menu {
padding: 0 4px;
}
position: sticky;
top: ${token.headerHeight + token.contentMarginTop}px;
width: 100%;
max-height: calc(100vh - ${token.headerHeight + token.contentMarginTop}px);
overflow: hidden;
scrollbar-width: thin;
scrollbar-gutter: stable;
&:hover {
overflow-y: auto;
Expand Down
6 changes: 3 additions & 3 deletions components/thought-chain/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const genThoughtChainItemBeforePseudoStyle: GenerateThoughtChainItemStyle = (tok
position: 'relative',

'&::before': {
bottom: `${token.calc(token.itemGap).mul(-1).equal()}`,
bottom: calc(token.itemGap).mul(-1).equal(),
},
},
[`& ${itemCls}-header, & ${itemCls}-content`]: {
Expand All @@ -131,7 +131,7 @@ const genThoughtChainItemBeforePseudoStyle: GenerateThoughtChainItemStyle = (tok
},
[`& ${itemCls}-header::before`]: {
top: token.itemSize,
bottom: `${token.calc(token.itemGap).mul(-2).equal()}`,
bottom: calc(token.itemGap).mul(-2).equal(),
},
[`& ${itemCls}-content::before`]: {
top: '100%',
Expand Down Expand Up @@ -180,7 +180,7 @@ const genThoughtChainItemStyle: GenerateThoughtChainItemStyle = (token) => {

[`& ${itemCls}-title`]: {
height: token.itemSize,
lineHeight: token.itemSize,
lineHeight: `${unit(token.itemSize)}`,
maxHeight: token.itemSize,
fontSize: token.itemFontSize,

Expand Down

0 comments on commit c50d28f

Please sign in to comment.