m3-svelte 3.4.11 → 3.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,7 +52,7 @@
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,7 +125,8 @@
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
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": {