Improve slider appearance
Make slider endpoints symmetric and colored.
This commit is contained in:
parent
615c43f72a
commit
030c188ab3
3 changed files with 33 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback } from 'react';
|
|||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Slider } from '@/components/ui/slider';
|
||||
import { RangeSlider } from '@/components/ui/range-slider';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import SocialShare from '@/components/SocialShare';
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ const TernaryNumberGame: React.FC<TernaryNumberGameProps> = ({ showSocialShare =
|
|||
<div className="w-3 h-3 bg-primary rounded-full"></div>
|
||||
</div>
|
||||
</div>
|
||||
<Slider
|
||||
<RangeSlider
|
||||
value={targetRange}
|
||||
onValueChange={(value) => {
|
||||
// Snap to multiples of 10 if close enough
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue