Skip to content

Commit 1f1acfc

Browse files
committed
Fixed some formatting
1 parent b73f0c7 commit 1f1acfc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jam-25/src/routes/App.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,8 @@ const App = () => {
915915
{
916916
savedGameAvailable ? (
917917
<>
918-
<Typography variant='overline' sx={{ fontFamily: 'Orbitron' }}>Saved Game</Typography>
919-
<Typography variant='body1' sx={{ fontFamily: 'Orbitron' }}>Round: {savedGameAvailable.round}</Typography>
918+
<Typography variant='overline' sx={{ fontFamily: 'Orbitron', textAlign: 'center' }}>Saved Game</Typography>
919+
<Typography variant='body1' sx={{ fontFamily: 'Orbitron', textAlign: 'center' }}>Round: {savedGameAvailable.round}</Typography>
920920
<Box sx={{ mb: 1, display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center', p: 2, border: '1px solid ghostwhite', backgroundColor: '#564c59', borderRadius: '8px', zIndex: 5 }}>
921921
{
922922
Array(savedGameAvailable?.maxJokers).fill().map((_, i) => (
@@ -925,14 +925,14 @@ const App = () => {
925925
}
926926
</Box>
927927
</>
928-
) : <Typography variant='overline' sx={{ fontFamily: 'Orbitron', mt: 'auto'}}>No Saved Game Found</Typography>
928+
) : <Typography variant='overline' sx={{ fontFamily: 'Orbitron', mt: 'auto', textAlign: 'center' }}>No Saved Game Found</Typography>
929929
}
930930
<Button className="button" disabled={!savedGameAvailable} variant="contained" onClick={loadGame}>
931931
Load Saved Game
932932
</Button>
933933
</Box>
934934
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', p: 2, borderRadius: 4 }}>
935-
<Typography variant='overline' sx={{ fontFamily: 'Orbitron', mt: 'auto'}}>Start a new Game</Typography>
935+
<Typography variant='overline' sx={{ fontFamily: 'Orbitron', mt: 'auto', textAlign: 'center' }}>Start a new Game</Typography>
936936
<Button sx={{ mt: 'auto' }} className="button" variant="contained" onClick={handleNewGame}>
937937
New Game
938938
</Button>
@@ -949,11 +949,11 @@ const App = () => {
949949
<Dialog open={jokerDelete}>
950950
<DialogTitle sx={{ fontFamily: 'Orbitron' }}>Sell Joker?</DialogTitle>
951951
<DialogContent>
952-
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'flex-start', position: 'relative', p: 2, m: matches ? 1 : 2, maxWidth: '30%' }}>
952+
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'flex-start', position: 'relative', p: 2, m: matches ? 1 : 2 }}>
953953
{activeJoker}
954954
<Typography variant='h6' sx={{ textAlign: 'center', fontSize: matches ? 18 : 20, fontFamily: 'Orbitron' }}>{activeJoker?.props?.joker?.name}</Typography>
955955
<Typography variant='body1' sx={{ textAlign: 'center', fontSize: matches ? 14 : 16 }}>{activeJoker?.props?.joker?.description}</Typography>
956-
<Typography variant='body1' sx={{ mt: 'auto', color: 'goldenrod', fontFamily: 'Orbitron' }}>Refund: ${Math.floor(activeJoker?.props?.joker?.price / 2)}</Typography>
956+
<Typography variant='body1' sx={{ mt: 'auto', color: 'goldenrod', fontFamily: 'Orbitron', textAlign: 'center' }}>Refund: ${Math.floor(activeJoker?.props?.joker?.price / 2)}</Typography>
957957
</Box>
958958
<Box sx={{ mt: 2, width: '100%', display: 'flex', flexDirection: 'row', justifyContent: 'center' }}>
959959
<Button className="button" variant="contained" sx={{ mr: 0.5 }} onClick={() => {

0 commit comments

Comments
 (0)