Fix various margins

This commit is contained in:
powermaker450 2024-09-11 23:41:00 -04:00
parent c4aea2e106
commit bb0a7e5e04
4 changed files with 10 additions and 13 deletions

View file

@ -13,7 +13,10 @@ interface ActionButtonProps {
const ButtonRow = ({ buttons }: ActionButtonProps) => { const ButtonRow = ({ buttons }: ActionButtonProps) => {
return ( return (
<Grid2 container spacing={2}> <Grid2
container
spacing={2}
>
{buttons.map((button) => { {buttons.map((button) => {
return ( return (
<Button <Button

View file

@ -17,7 +17,7 @@ interface ReviewFieldOpts {
const ReviewField = ({ fields }: ReviewFieldOpts) => { const ReviewField = ({ fields }: ReviewFieldOpts) => {
return ( return (
<Box component="form" noValidate autoComplete="off"> <Box sx={{margin: "20px 0"}}>
<Stack spacing={1}> <Stack spacing={1}>
{fields.map((field) => { {fields.map((field) => {
const [errorText, setErrorText] = useState(""); const [errorText, setErrorText] = useState("");

View file

@ -27,7 +27,6 @@ function ShowReviews({ reviews }: ShowReviewsProps) {
<Slide <Slide
direction="up" direction="up"
in in
del
mountOnEnter mountOnEnter
key={review.id} key={review.id}
> >

View file

@ -154,31 +154,26 @@ function Home({ endpoint, setEndpoint, secure, setSecure }: HomeProps) {
<div id="app"> <div id="app">
<Typography variant="h3">Simple Review Client</Typography> <Typography variant="h3">Simple Review Client</Typography>
<br />
<Rating <Rating
name="review-rating" name="review-rating"
precision={0.5} precision={0.5}
size="large" size="large"
value={rating} value={rating}
sx={{marginTop: "10px"}}
onChange={(event, newRating) => { onChange={(event, newRating) => {
event event
setNewRating(newRating); setNewRating(newRating);
}} }}
/> />
<br />
<br />
<ReviewField fields={fields} /> <ReviewField fields={fields} />
<br />
<ButtonRow buttons={buttons} /> <ButtonRow buttons={buttons} />
<br /> <div
id="alert-box"
<div id="alert-box"> style={{margin: "20px 0"}}
>
<Grow in={showAlert} mountOnEnter unmountOnExit> <Grow in={showAlert} mountOnEnter unmountOnExit>
{alert} {alert}
</Grow> </Grow>