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; 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 { .ant-pro-sider-logo-collapsed {
padding-left: 12px; padding-left: 6px;
cursor: e-resize; cursor: e-resize;
display: flex;
gap: 6px;
.collapse-wrap { .collapse-wrap {
display: none; display: none;
+4 -3
View File
@@ -237,19 +237,20 @@ export default (props: any) => {
return ( return (
<> <>
{logo} {logo}
<div className="collapse-wrap" onClick={handleToggleCollapse}> <div onClick={handleToggleCollapse}>
<Button <Button
className="collapse-btn"
style={{ style={{
marginRight: collapsed ? 0 : -6, marginRight: collapsed ? 0 : -6,
border: 'none', border: 'none',
cursor: 'w-resize' cursor: 'w-resize'
}} }}
size="small" size="small"
type={collapsed ? 'default' : 'text'} type={'text'}
> >
<IconFont <IconFont
type={collapsed ? 'icon-expand-left' : 'icon-expand-right'} type={collapsed ? 'icon-expand-left' : 'icon-expand-right'}
className="font-size-18 text-secondary" className="font-size-18"
style={{ style={{
display: 'block' display: 'block'
}} }}