e.stopPropagation()}
51 | className='group relative flex w-fit flex-col items-start rounded-md pr-2'
52 | >
53 | {!!label && (
54 |
55 | {label}
56 |
57 | )}
58 |
59 |
68 |
69 | > 0}
71 | onWheelCapture={updateVolumeOnWheelEvent}
72 | className='w-24 cursor-pointer py-4'
73 | trackClassName='bg-background h-1 transition-all'
74 | thumbClassName='scale-0 transition-all h-4 w-4 group-hover:scale-100 origin-left'
75 | onValueChange={handleChange}
76 | onValueCommit={(newVol) => onChangeCommit?.(newVol[0])}
77 | max={1}
78 | value={[volume]}
79 | defaultValue={[0]}
80 | step={0.01}
81 | />
82 |
83 |
84 | )
85 | }
86 |
--------------------------------------------------------------------------------
/src/components/settings/caret-tab/caret-tab.tsx:
--------------------------------------------------------------------------------
1 | import { AppStore } from '@/state/app-store'
2 | import { Setting } from '../setting'
3 | import { RadioCard, RadioCardContent } from '@/components/ui/radio-card'
4 | import {
5 | DEFAULT_CARET_SMOOTHNESS,
6 | DEFAULT_CARET_STYLE,
7 | CaretSmoothness,
8 | CaretStyle,
9 | } from '@/config/caret.config'
10 | import { For } from '@/components/map'
11 |
12 | export const CaretTab = () => {
13 | const { caretStyle, caretSmoothness } = AppStore.useStore(
14 | 'caretStyle',
15 | 'caretSmoothness',
16 | )
17 | return (
18 |