Browse Source
fix: hide sidebar link text when collapsed (#11834)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
pull/11855/head
afc163
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
0 deletions
-
src/global.less
-
src/global.style.ts
|
|
|
@ -61,6 +61,10 @@ body, |
|
|
|
left: unset; |
|
|
|
} |
|
|
|
|
|
|
|
.ant-pro-sider-collapsed .ant-pro-sider-link span:not([role='img']) { |
|
|
|
display: none; |
|
|
|
} |
|
|
|
|
|
|
|
canvas { |
|
|
|
display: block; |
|
|
|
} |
|
|
|
|
|
|
|
@ -11,6 +11,9 @@ const useStyles = createStyles(() => { |
|
|
|
'ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed': { |
|
|
|
left: 'unset', |
|
|
|
}, |
|
|
|
'.ant-pro-sider-collapsed .ant-pro-sider-link span:not([role="img"])': { |
|
|
|
display: 'none', |
|
|
|
}, |
|
|
|
canvas: { |
|
|
|
display: 'block', |
|
|
|
}, |
|
|
|
|