Skip to content

Commit

Permalink
Merge b4acad3 into b4d0e47
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Hon authored Mar 8, 2021
2 parents b4d0e47 + b4acad3 commit 9ba233d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/sider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Sider = ({
className={classNames(prefixCls, className, {
[`${prefixCls}-suspend`]: !!suspendedPosition,
[`${prefixCls}-suspend-${suspendedPosition}`]: !!suspendedPosition,
[`${prefixCls}-collapsed`]: localCollapsed && !suspendedPosition,
[`${prefixCls}-collapsed`]: localCollapsed,
[`${prefixCls}-suspend-collapsed`]: localCollapsed && !!suspendedPosition,
})}
style={mergedStyle}
Expand Down
32 changes: 16 additions & 16 deletions src/components/layout/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@
cursor: pointer;
user-select: none;
}
}

&-sider-suspend {
position: absolute;
z-index: 1050;
width: var(--layout-sider-width);
height: 100%;
&-left {
left: 0;
transform: translateX(var(--layout-sider-collapsedWidth-negative));
}
&-right {
right: 0;
transform: translateX(var(--layout-sider-collapsedWidth));
}
&-collapsed {
width: var(--layout-sider-collapsedWidth);
&-suspend {
position: absolute;
z-index: 1050;
width: var(--layout-sider-width);
height: 100%;
&-left {
left: 0;
transform: translateX(var(--layout-sider-collapsedWidth-negative));
}
&-right {
right: 0;
transform: translateX(var(--layout-sider-collapsedWidth));
}
&-collapsed {
width: var(--layout-sider-collapsedWidth);
}
}
}
}

0 comments on commit 9ba233d

Please sign in to comment.