chore: fix description overlap in Slider handle (#43780)

fix #43731
This commit is contained in:
2023-07-26 17:38:27 +08:00 committed by GitHub
parent 39d3baef43
commit 278262adbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,8 @@ const genDirectionStyle = (token: SliderToken, horizontal: boolean): CSSObject =
// Reset all
insetInlineStart: 0,
top: 0,
[markInset]: handleSize,
// https://github.com/ant-design/ant-design/issues/43731
[markInset]: railSize * 3 + (horizontal ? 0 : token.marginFull),
[full]: '100%',
},