Skip to content

Commit

Permalink
optimizing for mobile screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Nov 10, 2024
1 parent 357803a commit 793f50b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/TaleSetup/ConcertList.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ListItemText from "@mui/material/ListItemText";
import ListItemAvatar from "@mui/material/ListItemAvatar";
import Avatar from "@mui/material/Avatar";
import Chip from "@mui/material/Chip";
import { Stack } from "@mui/material";
import { Stack, Typography } from "@mui/material";
import IconButton from "@mui/material/IconButton";
import DeleteIcon from "@mui/icons-material/Delete";
import moment from "moment";
Expand Down Expand Up @@ -144,9 +144,9 @@ class ConcertList extends React.Component {
return (
<div>
{hasConcerts && (
<p>
<Typography>
Upcoming Concerts <br />({this.state.concerts.length} / 5):
</p>
</Typography>
)}
{hasConcerts && (
<Button onClick={onClearAllPress} variant="outlined" color="warning">
Expand Down
2 changes: 1 addition & 1 deletion src/TaleSetup/GetSpotifyPlaylistArtistsWithShows.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function GetSpotifyPlaylistArtistsWithShows({ followedArtists, setFollowedArtist
};

return (<Grid>
<p>Find concerts from playlist </p>
<Typography>Find concerts from playlist </Typography>
<form onSubmit={handleSubmit}>
<Stack direction={'column'} spacing={2}>
<TextField
Expand Down
5 changes: 2 additions & 3 deletions src/TaleSetup/YourSpotifyArtistsWithShows.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Grid, Chip, Box, CircularProgress } from '@mui/material';
import { Grid, Chip, Box, CircularProgress,Typography } from '@mui/material';
import SwipeableTextMobileStepper from './ArtistsCarrousel'

function YourSpotifyArtistsWithShows({ artists, onChildClick, isRequestTriggered }) {
Expand Down Expand Up @@ -40,7 +40,7 @@ function YourSpotifyArtistsWithShows({ artists, onChildClick, isRequestTriggered

return (
<Grid>
<p>Artists from your playlist</p>
<Typography>Artists from your playlist</Typography>

{artists.length > 25 ? (<SwipeableTextMobileStepper groupedNames={groupedNames} handleArtistClick={handleClick} />) : (<Box
display="flex"
Expand All @@ -51,7 +51,6 @@ function YourSpotifyArtistsWithShows({ artists, onChildClick, isRequestTriggered
{commaSeparatedfollowedArtists}
</Grid>
</Box>)}
<p></p>
{isLoading && <CircularProgress />}
</Grid>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Voyage/Voyage.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Voyage = ({
const concerts1 = concerts.slice(0, middleIndex);
const concerts2 = concerts.slice(middleIndex);

return (<Stack disablePadding spacing={3}>
return (<Stack spacing={3} sx={{ width:{xs:'100%', sm:'90%', md:'80%'}}}>
{isLoaded ? <Map concerts={concerts} userLocation={userLocation} mapStyle={style} /> : null}
<Typography
variant="h2"
Expand Down

0 comments on commit 793f50b

Please sign in to comment.