style: collapse style
This commit is contained in:
+12
-1
@@ -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;
|
||||||
|
|||||||
@@ -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'
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user