Skip to content

Commit

Permalink
Merge pull request #1367 from andrew-bierman/fix-score-container
Browse files Browse the repository at this point in the history
Fix pack score
  • Loading branch information
taronaleksanian authored Dec 16, 2024
2 parents 5a150f6 + e7b3993 commit 147eec8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/app/components/ScoreContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from 'app/hooks/score';
import { View } from 'react-native';
import { useMedia } from 'tamagui';
import useResponsive from 'app/hooks/useResponsive';

interface ScoreProgressChartProps {
score: number;
Expand Down Expand Up @@ -187,6 +188,7 @@ export const ScoreContainer: React.FC<ScoreContainerProps> = ({

const handleScoreClick = useCalculateStore(id, type);
const media = useMedia();
const { sm } = useResponsive();

return (
<RStack style={styles.box}>
Expand Down Expand Up @@ -217,7 +219,10 @@ export const ScoreContainer: React.FC<ScoreContainerProps> = ({
style={{
flex: 1,
flexDirection: media.gtXs ? 'column' : 'row',
gap: 15,
flexWrap: 'wrap',
gap: sm ? 50 : 20,
justifyContent: 'center',
alignItems: 'center',
}}
>
<ScoreProgressChart score={totalScore} />
Expand Down

0 comments on commit 147eec8

Please sign in to comment.