feat(sliders): adjust value label positioning and line height

- Move slider handle value labels 6px upward in both DualRangeSlider and SingleSlider components
- Add consistent line-height of 14px to ensure proper text alignment
- Improves visual spacing and readability of value labels during slider interaction
This commit is contained in:
Will Miao
2026-01-21 01:05:15 +08:00
parent fd06086a05
commit 1b7b598f7a
4 changed files with 40 additions and 36 deletions

View File

@@ -442,7 +442,7 @@ const stopDrag = (event?: PointerEvent) => {
.slider-handle__value {
position: absolute;
top: 0;
top: -6px;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
@@ -451,6 +451,7 @@ const stopDrag = (event?: PointerEvent) => {
opacity: 0.8;
white-space: nowrap;
pointer-events: none;
line-height: 14px;
}
.slider-handle--min .slider-handle__value {

View File

@@ -239,7 +239,7 @@ const stopDrag = (event?: PointerEvent) => {
.slider-handle__value {
position: absolute;
top: 0;
top: -6px;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
@@ -248,5 +248,6 @@ const stopDrag = (event?: PointerEvent) => {
opacity: 0.8;
white-space: nowrap;
pointer-events: none;
line-height: 14px;
}
</style>