File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " m3-svelte" ,
3
- "version" : " 3.4.11 " ,
3
+ "version" : " 3.4.12 " ,
4
4
"license" : " Apache-2.0 OR GPL-3.0-only" ,
5
5
"repository" : " KTibow/m3-svelte" ,
6
6
"author" : {
Original file line number Diff line number Diff line change 52
52
class =" tick"
53
53
class:hidden ={Math .abs (tick / 100 - $valueDisplayed / range ) < 0.01 }
54
54
class:inactive ={tick / 100 > $valueDisplayed / range }
55
- style = "left: calc(4px + {tick } % - { i * 2 } px);"
55
+ style:--x = {tick / 100 - 0.5 }
56
56
></div >
57
57
{/each }
58
58
<div class =" thumb" ></div >
125
125
height : 4px ;
126
126
border-radius : var (--m3-util-rounding-full );
127
127
top : 50% ;
128
- translate : 0 -50% ;
128
+ left : calc (50% + (100% - 0.75rem ) * var (--x ));
129
+ translate : -50% -50% ;
129
130
background-color : rgb (var (--m3-scheme-primary-container ));
130
131
pointer-events : none ;
131
132
}
You can’t perform that action at this time.
0 commit comments