style: collapse style

This commit is contained in:
jialin
2026-06-04 15:48:44 +08:00
committed by jialin
parent b12d11728d
commit c4a72eb375
2 changed files with 16 additions and 4 deletions
+12 -1
View File
@@ -257,9 +257,20 @@ body {
border-block-end: none;
}
.ant-pro-sider-logo {
.collapse-btn {
color: var(--ant-color-text-tertiary);
:hover {
color: var(--ant-color-text);
}
}
}
.ant-pro-sider-logo-collapsed {
padding-left: 12px;
padding-left: 6px;
cursor: e-resize;
display: flex;
gap: 6px;
.collapse-wrap {
display: none;
+4 -3
View File
@@ -237,19 +237,20 @@ export default (props: any) => {
return (
<>
{logo}
<div className="collapse-wrap" onClick={handleToggleCollapse}>
<div onClick={handleToggleCollapse}>
<Button
className="collapse-btn"
style={{
marginRight: collapsed ? 0 : -6,
border: 'none',
cursor: 'w-resize'
}}
size="small"
type={collapsed ? 'default' : 'text'}
type={'text'}
>
<IconFont
type={collapsed ? 'icon-expand-left' : 'icon-expand-right'}
className="font-size-18 text-secondary"
className="font-size-18"
style={{
display: 'block'
}}