Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/components/BarVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const BarVisualizer = ({
let bars: React.ReactNode[] = [];
magnitudes.forEach((value, index) => {
let coerced = Math.min(opts.maxHeight, Math.max(opts.minHeight, value));
let coercedPercent = Math.min(100, Math.max(0, coerced * 100 + 5));
let coercedPercent = Math.min(100, Math.max(0, coerced * 100));
let opacity = opacityAnimations[index] ?? new Animated.Value(0.3);
let barStyle = {
opacity: opacity,
Expand All @@ -160,11 +160,7 @@ export const BarVisualizer = ({
bars.push(
<Animated.View
key={index}
style={[
{ height: `${coercedPercent}%` },
barStyle,
styles.volumeIndicator,
]}
style={[{ height: `${coercedPercent}%` }, barStyle]}
/>
);
});
Expand All @@ -177,9 +173,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'space-evenly',
},
volumeIndicator: {
borderRadius: 12,
},
});

export const useBarAnimator = (
Expand Down
Loading