feat(theseus): add snapPoints for memory sliders (#1275)

* feat: add snapPoints for memory sliders

* fix lint

* Reapply changes

* Hide snap point display when disabled

* fix unused imports

---------

Co-authored-by: Prospector <prospectordev@gmail.com>
This commit is contained in:
ToBinio
2025-07-10 00:59:59 +02:00
committed by GitHub
parent fadf475f06
commit cff3c72f94
4 changed files with 30 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
v-for="snapPoint in snapPoints"
:key="snapPoint"
class="snap-point"
:class="{ green: snapPoint <= currentValue }"
:class="{ green: snapPoint <= currentValue, 'opacity-0': disabled }"
:style="{ left: ((snapPoint - min) / (max - min)) * 100 + '%' }"
></div>
</div>