Skip to content

Commit 9473120

Browse files
committed
fix padding
1 parent 613e12e commit 9473120

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

fullstack/frontend/src/CreateMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const CreateMessage = () => {
1717
};
1818

1919
return (
20-
<Stack direction="column" spacing={2}>
20+
<Stack direction="column" spacing={2} alignItems="flex-start">
2121
<Typography variant="h4">Create a message</Typography>
2222
{error && (
2323
<Typography variant="body1" sx={{ color: "coral" }}>

fullstack/frontend/src/FrontPage.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
Box,
44
Container,
55
Link,
6+
Stack,
67
Toolbar,
78
Typography,
89
} from "@mui/material";
@@ -34,8 +35,10 @@ export const FrontPage = () => {
3435
</AppBar>
3536
</Box>
3637
<Container sx={{ p: 5 }}>
37-
<CreateMessage />
38-
<MessageList />
38+
<Stack direction="column" spacing={2} alignItems="flex-start">
39+
<CreateMessage />
40+
<MessageList />
41+
</Stack>
3942
</Container>
4043
</>
4144
);

fullstack/frontend/src/MessageList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const MessageList = () => {
1313
setError(JSON.stringify(e, null, 2));
1414
}
1515
};
16-
16+
1717
useEffect(() => {
1818
load();
1919
}, []);
@@ -24,7 +24,7 @@ export const MessageList = () => {
2424
</Typography>;
2525
}
2626
return (
27-
<Stack direction="column" spacing={2}>
27+
<Stack direction="column" spacing={2} alignItems="flex-start">
2828
<Button variant="contained" color="primary" onClick={load}>
2929
Load messages
3030
</Button>

0 commit comments

Comments
 (0)