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) => {
return (
<Grid2 container spacing={2}>
<Grid2
container
spacing={2}
>
{buttons.map((button) => {
return (
<Button

View file

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

View file

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

View file

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