mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
fix(Spliter): expand collapse button click area for improved usability (#51383)
This commit is contained in:
parent
e12a76b3ab
commit
5f8a5d2149
@ -136,13 +136,13 @@ const SplitBar: React.FC<SplitBarProps> = (props) => {
|
||||
`${splitBarPrefixCls}-collapse-bar`,
|
||||
`${splitBarPrefixCls}-collapse-bar-start`,
|
||||
)}
|
||||
onClick={() => onCollapse(index, 'start')}
|
||||
>
|
||||
<StartIcon
|
||||
className={classNames(
|
||||
`${splitBarPrefixCls}-collapse-icon`,
|
||||
`${splitBarPrefixCls}-collapse-start`,
|
||||
)}
|
||||
onClick={() => onCollapse(index, 'start')}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
@ -154,13 +154,13 @@ const SplitBar: React.FC<SplitBarProps> = (props) => {
|
||||
`${splitBarPrefixCls}-collapse-bar`,
|
||||
`${splitBarPrefixCls}-collapse-bar-end`,
|
||||
)}
|
||||
onClick={() => onCollapse(index, 'end')}
|
||||
>
|
||||
<EndIcon
|
||||
className={classNames(
|
||||
`${splitBarPrefixCls}-collapse-icon`,
|
||||
`${splitBarPrefixCls}-collapse-end`,
|
||||
)}
|
||||
onClick={() => onCollapse(index, 'end')}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user