Skip to content

Commit

Permalink
fix: case-ing
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekMichalSebestyen committed Nov 23, 2023
1 parent 7de6f37 commit babcde7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions resources/js/components/catalog-new/ItemsFilterController.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ export default {
this.query = { ...EMPTY_QUERY }
},
handleColorChange(color) {
console.log('Podme na to')
console.log(color)
this.query = {
...this.query,
color: color,
Expand Down
18 changes: 9 additions & 9 deletions resources/js/components/catalog-new/NewColorSlider.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<template>
<div>
<slider
:model-value="hue"
@update:model-value="hue = $event"
@dragging="immediateHue = $event"
tooltip="none"
:min="0"
:max="360"
:duration="0"
:dotSize="44"
:dot-size="44"
:height="12"
:process="false"
:railStyle="{
:rail-style="{
background:
'linear-gradient(to right, #d82626 0%, #d8d826 17%, #26d826 33%, #26d8d8 50%, #2626d8 67%, #d826d8 83%, #d82626 100%)',
}"
lazy
class="tw-cursor-pointer"
:model-value="hue"
@dragging="immediateHue = $event"
@update:model-value="hue = $event"
>
<template #dot>
<div class="tw-flex tw-h-full tw-w-full tw-justify-center tw-items-center">
Expand All @@ -36,20 +36,20 @@
</slider>
<slider
v-if="color"
:model-value="lightness"
@update:model-value="lightness = $event"
@dragging="immediateLightness = $event"
tooltip="none"
:min="0"
:max="1"
:interval="0.01"
:duration="0"
:dotSize="44"
:dot-size="44"
:height="12"
:process="false"
:rail-style="{ background: lightnessBackground }"
lazy
class="tw-cursor-pointer tw-mt-3"
:model-value="lightness"
@dragging="immediateLightness = $event"
@update:model-value="lightness = $event"
>
<template #dot>
<div class="tw-flex tw-h-full tw-w-full tw-justify-center tw-items-center">
Expand Down

0 comments on commit babcde7

Please sign in to comment.