From 753e1f31e32daa2cbb4b696abe1e1e73ec554191 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Thu, 27 Mar 2025 10:54:12 +0100 Subject: [PATCH] slider reset --- front/src/components/ui/Slider.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/front/src/components/ui/Slider.vue b/front/src/components/ui/Slider.vue index 8a3b882d5..f74ae9a2f 100644 --- a/front/src/components/ui/Slider.vue +++ b/front/src/components/ui/Slider.vue @@ -83,7 +83,7 @@ onMounted(() => { ref="input" v-model="index" type="range" - style="width: var(--slider-width); opacity: .001;" + style="width: var(--slider-width);" :max="keys.length - 1" :autofocus="autofocus || undefined" > @@ -142,11 +142,11 @@ onMounted(() => { // Fake slider .range { width: calc(var(--step-size) * var(--current-step)); - border-bottom: 2px solid currentcolor; position: absolute; top: 11px; transition: all .1s; pointer-events: none; + background-color: var(--fw-primary); } input:focus~.range { // focused style @@ -155,10 +155,11 @@ onMounted(() => { border-radius: 8px; width: 16px; height: 16px; - left: calc(var(--step-size) * var(--current-step)); - background: currentcolor; + left: calc(var(--step-size) * var(--current-step) + 2px); + border: 2px solid var(--fw-primary); + background-color: var(--fw-primary); position: absolute; - top: 4px; + top: 2px; transition: all .1s; pointer-events: none; }