Skip to content

Commit

Permalink
Merge pull request #248 from Tencent/fix/slider/markposition
Browse files Browse the repository at this point in the history
fix: slider mask position
  • Loading branch information
honkinglin authored Feb 23, 2022
2 parents d00dba1 + 4bfc600 commit 73da419
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion style/web/components/slider/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@
color: @slider-text;
top: @slider-text-top;
line-height: @slider-text-line-height;
// transform: translateX(-50%);
transform: translateX(-50%);
margin-top: @slider-border-radius;
cursor: pointer;

&:first-child {
transform: translateX(0%);
}

&:last-child {
transform: translateX(-100%);
}
Expand Down

0 comments on commit 73da419

Please sign in to comment.