@@ -200,21 +200,11 @@ const minimapLine = computed(() => {
200200 return props .smoothMinimap ? createSmoothPath (points) : createStraightPath (points);
201201});
202202
203- // const startPercent = computed(() => {
204- // const range = props.max - props.min;
205- // return ((startValue.value - props.min) / range) * 100;
206- // });
207-
208- // const endPercent = computed(() => {
209- // const range = props.max - props.min;
210- // return ((endValue.value - props.min) / range) * 100;
211- // });
212-
213203const range = computed (() => props .max - props .min );
214204const leftLabelPosition = computed (() => {
215205 const leftPercent = ((startValue .value - props .min ) / range .value ) * 100 ;
216206 return {
217- left: ` calc(${ leftPercent} %)` , // Adjust positioning as needed
207+ left: ` calc(${ leftPercent} %)` ,
218208 color: props .textColor ,
219209 fontSize: ` ${ props .fontSize } px` ,
220210 top: ' -28px' ,
@@ -225,7 +215,7 @@ const leftLabelPosition = computed(() => {
225215const rightLabelPosition = computed (() => {
226216 const rightPercent = ((endValue .value - props .min ) / range .value ) * 100 ;
227217 return {
228- left: ` calc(${ rightPercent} %)` , // Adjust positioning as needed
218+ left: ` calc(${ rightPercent} %)` ,
229219 color: props .textColor ,
230220 fontSize: ` ${ props .fontSize } px` ,
231221 top: ' 28px' ,
@@ -238,7 +228,7 @@ const rightLabelPosition = computed(() => {
238228
239229<template >
240230 <div data-html2canvas-ignore >
241- <div class =" vue-data-ui-slicer-labels" >
231+ <div class =" vue-data-ui-slicer-labels" style = " position : relative ; z-index : 1 " >
242232 <div v-if =" valueStart > 0 || valueEnd < max" style =" width : 100% ; position : relative " >
243233 <button v-if =" !useResetSlot" data-cy-reset tabindex =" 0" role =" button" class =" vue-data-ui-refresh-button"
244234 @click =" reset" >
@@ -247,7 +237,7 @@ const rightLabelPosition = computed(() => {
247237 <slot v-else name =" reset-action" :reset =" reset" />
248238 </div >
249239 </div >
250- <div class =" double-range-slider" ref =" minimapWrapper" >
240+ <div class =" double-range-slider" ref =" minimapWrapper" style = " z-index : 0 " >
251241 <template v-if =" hasMinimap " >
252242 <div class =" minimap" style =" width : 100% " >
253243 <svg :xmlns =" XMLNS" :viewBox =" `0 0 ${svgMinimap.width < 0 ? 0 : svgMinimap.width} ${svgMinimap.height < 0 ? 0 : svgMinimap.height}`" >
@@ -294,7 +284,6 @@ const rightLabelPosition = computed(() => {
294284 </div >
295285</template >
296286
297-
298287<style scoped lang="scss">
299288.double-range-slider {
300289 position : relative !important ;
0 commit comments