fix: slider lenght & duration position

This commit is contained in:
Adrian Castro
2024-02-16 14:41:36 +01:00
parent 404c269e8d
commit d9964f5a72
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export const BottomControls = () => {
<Controls> <Controls>
<View className="flex h-16 w-full flex-col items-center justify-center"> <View className="flex h-16 w-full flex-col items-center justify-center">
<View className="w-full px-4"> <View className="w-full px-4">
<View className="flex flex-row items-center"> <View className="ml-10 flex flex-row items-center">
<Text className="font-bold">{getCurrentTime()}</Text> <Text className="font-bold">{getCurrentTime()}</Text>
<Text className="mx-1 font-bold">/</Text> <Text className="mx-1 font-bold">/</Text>
<TouchableOpacity onPress={toggleTimeDisplay}> <TouchableOpacity onPress={toggleTimeDisplay}>

View File

@@ -36,7 +36,7 @@ const VideoSlider = ({ onSlidingComplete }: VideoSliderProps) => {
const status = usePlayerStore((state) => state.status); const status = usePlayerStore((state) => state.status);
const setIsIdle = usePlayerStore((state) => state.setIsIdle); const setIsIdle = usePlayerStore((state) => state.setIsIdle);
const width = Dimensions.get("screen").width - 200; const width = Dimensions.get("screen").width - 100;
const knobSize_ = 20; const knobSize_ = 20;
const trackSize_ = 8; const trackSize_ = 8;
const minimumValue = 0; const minimumValue = 0;