Skip to content

Commit

Permalink
Initial cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
epadams committed Jan 22, 2024
1 parent 3f86764 commit 29fea51
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions FU.SPA/src/components/CreatePost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function CreatePost() {
<Box
sx={{
marginTop: 1,
m: 4,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
Expand All @@ -81,9 +82,13 @@ export default function CreatePost() {
onKeyDown={(e) => {
if (e.key === 'Enter') e.preventDefault();
}}
sx={{ mt: 3 }}
sx={{
display: 'flex',
flexDirection: 'column',
mt: 3,
gap: 2
}}
>
<Grid container spacing={2}>
<TextField
required //may want to get rid of this and just check if it's empty when clicking create button.
fullWidth
Expand Down Expand Up @@ -116,15 +121,10 @@ export default function CreatePost() {
onChange={(newValue) => setEndTime(newValue)}
/>
</LocalizationProvider>
<Grid item xs={12}>
<TagsSelector onChange={setTags} />
</Grid>
<Box
sx={{
marginTop: 3,
display: 'flex',
marginLeft: 2,
marginRight: 2.5,
}}
>
<Typography component="h1" variant="h6">
Expand All @@ -133,15 +133,12 @@ export default function CreatePost() {
Description
</Typography>
</Box>
<Grid item xs={12} sm={6} marginTop={2}>
<TextareaAutosize
aria-setsize={300}
size={500}
size={1000}
value={description}
onChange={(e) => setDescription(e.target.value)}
></TextareaAutosize>
</Grid>
</Grid>
<Button
type="submit"
fullWidth
Expand Down

0 comments on commit 29fea51

Please sign in to comment.