From f07d727a3f6687258495bd0f18310809f62e8cb0 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz Date: Sun, 15 Aug 2021 17:05:30 +0530 Subject: [PATCH] Cleaned up code and removed debug remnants --- components/ImageUploader.tsx | 1 - components/Slider.tsx | 3 --- styles/globals.css | 8 ++++++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/ImageUploader.tsx b/components/ImageUploader.tsx index aa81a8f102..d348e1b62d 100644 --- a/components/ImageUploader.tsx +++ b/components/ImageUploader.tsx @@ -50,7 +50,6 @@ export default function ImageUploader({target, id, buttonMsg, handleAvatarChange const handleZoomSliderChange = ([value]) => { value < 1 ? setZoom(1) : setZoom(value); - // setZoom(e[0]); } const createImage = (url) => diff --git a/components/Slider.tsx b/components/Slider.tsx index cfad47c8d9..4e359a4bc6 100644 --- a/components/Slider.tsx +++ b/components/Slider.tsx @@ -1,12 +1,9 @@ import React from 'react'; -// import { styled } from '@stitches/react'; -// import { violet, blackA } from '@radix-ui/colors'; import * as SliderPrimitive from '@radix-ui/react-slider'; const Slider = ({value, min, max, step, label, changeHandler}) => ( .slider-track { @apply relative flex-grow h-1 bg-neutral-400 rounded-md; } + .slider .slider-range { @apply absolute h-full bg-neutral-700 rounded-full } + .slider .slider-thumb { @apply block w-3 h-3 bg-neutral-700 rounded-full shadow-sm cursor-pointer transition-all; - } + } + .slider .slider-thumb:hover { @apply bg-neutral-600; } + .slider .slider-thumb:focus { box-shadow: 0 0 0 4px rgba(0,0,0,0.2); } - } /* !important to style multi-email input */