fix(Spliter): expand collapse button click area for improved usability (#51383)

This commit is contained in:
Jony J 2024-10-26 23:47:07 +08:00 committed by GitHub
parent e12a76b3ab
commit 5f8a5d2149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
)}