mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
Fix incorrect collapse icon position when sider in the right
This commit is contained in:
parent
4c5f3d2b0a
commit
c24d737546
@ -213,7 +213,10 @@ class Sider extends React.Component<SiderProps, SiderState> {
|
||||
// special trigger when collapsedWidth == 0
|
||||
const zeroWidthTrigger =
|
||||
parseFloat(String(collapsedWidth || 0)) === 0 ? (
|
||||
<span onClick={this.toggle} className={`${prefixCls}-zero-width-trigger`}>
|
||||
<span
|
||||
onClick={this.toggle}
|
||||
className={`${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`}
|
||||
>
|
||||
<Icon type="bars" />
|
||||
</span>
|
||||
) : null;
|
||||
|
@ -110,6 +110,14 @@
|
||||
&:hover {
|
||||
background: tint(@layout-sider-background, 10%);
|
||||
}
|
||||
|
||||
&-left {
|
||||
right: -@layout-zero-trigger-width;
|
||||
}
|
||||
|
||||
&-right {
|
||||
left: -@layout-zero-trigger-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user