smol fixes

This commit is contained in:
Violet Caulfield
2025-02-22 19:56:18 -06:00
parent dda1f9cf35
commit 15c95ab9a5
2 changed files with 23 additions and 25 deletions
+22 -24
View File
@@ -32,32 +32,30 @@ export function HorizontalSlider({
props?: TamaguiSliderProps | undefined
}) : React.JSX.Element {
const theme = useTheme()
return (
<TamaguiSlider
width={width}
value={value ? [value] : []}
max={max}
orientation="horizontal"
marginHorizontal={10}
{ ...props }
>
<JellifySliderTrack size="$4">
<JellifyActiveSliderTrack size={"$4"} />
</JellifySliderTrack>
<JellifySliderThumb
circular
index={0}
size={"$1"}
hitSlop={{
top: 35,
right: 70,
bottom: 70,
left: 70
}}
/>
width={width}
value={value ? [value] : []}
max={max}
step={1}
orientation="horizontal"
marginHorizontal={10}
{ ...props }
>
<JellifySliderTrack size="$4">
<JellifyActiveSliderTrack size={"$4"} />
</JellifySliderTrack>
<JellifySliderThumb
circular
index={0}
size={"$1"}
hitSlop={{
top: 35,
right: 70,
bottom: 70,
left: 70
}}
/>
</TamaguiSlider>
)
}
+1 -1
View File
@@ -82,7 +82,7 @@ export default function Scrubber() : React.JSX.Element {
/>
</GestureDetector>
<XStack margin={"$2"}>
<XStack margin={"$2"} marginTop={"$3"}>
<YStack flex={1} alignItems="flex-start">
<RunTimeSeconds>{Math.floor(position / ProgressMultiplier)}</RunTimeSeconds>
</YStack>