Skip to content

Commit

Permalink
fixing width issue with trip title textfield
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Dec 5, 2024
1 parent 5b266ee commit dd701a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Odyssey/SharePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ const SharePage = ({ concerts, userLocation, mapStyle, setPosterName, posterName
return (
<Stack disablePadding spacing={3}>
{isLoaded ? <Map concerts={concerts} userLocation={userLocation} mapStyle={mapStyle} /> : null}
<Stack spacing={5} direction={'row'} sx={{ width: '100%' }}>
<Stack spacing={2} direction={'row'} sx={{ width: '100%' }}>
<TextField
variant="standard"
placeholder="Write a cool name for your trip here"
InputProps={{ sx: { 'input': { textAlign: 'center', color: 'white' } } }}
value={posterName}
onChange={(e) => setPosterName(e.target.value)} />
onChange={(e) => setPosterName(e.target.value)}
sx={{ flex: 1}} />
<Button
color="primary"
onClick={GenerateTripTitle}
Expand Down

0 comments on commit dd701a1

Please sign in to comment.