💄 UI adjustment

Signed-off-by: Pau Costa <mico@micodev.es>
main
Pau Costa Ferrer 2024-02-19 20:00:58 +01:00
parent 2394c63977
commit 1fe72cd4f5
2 changed files with 24 additions and 10 deletions

View File

@ -137,7 +137,7 @@ export default function PostView() {
{postToDisplay?.comments?.map((comment) => ( {postToDisplay?.comments?.map((comment) => (
<Paper> <Paper>
<Box sx={{ margin: "1rem" }}> <Box sx={{ margin: "1rem" }}>
<Box sx={{ display: "flex", mb: "0.3rem" }}> <Box sx={{ display: "flex", mb: "0.3rem", pt: "0.3rem" }}>
<AppAvatar user={comment.createdBy!} small /> <AppAvatar user={comment.createdBy!} small />
<Typography variant="subtitle2" sx={{ ml: "0.5rem" }}> <Typography variant="subtitle2" sx={{ ml: "0.5rem" }}>
{comment.createdBy?.firstName} {comment.createdBy?.lastName} {comment.createdBy?.firstName} {comment.createdBy?.lastName}

View File

@ -85,6 +85,10 @@ export default function Profile(props: ProfileProps) {
<Paper <Paper
sx={{ sx={{
width: "100%", width: "100%",
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
}} }}
> >
<Box> <Box>
@ -138,7 +142,16 @@ export default function Profile(props: ProfileProps) {
</Box> </Box>
</Box> </Box>
</Paper> </Paper>
<List sx={{ width: "75%" }}> <Box
sx={{
width: "75%",
margin: "auto",
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<List>
{userToDisplay!.posts?.map((post: Post) => ( {userToDisplay!.posts?.map((post: Post) => (
<PostListItem post={post} postType="user" key={post.id} /> <PostListItem post={post} postType="user" key={post.id} />
)) || ( )) || (
@ -147,6 +160,7 @@ export default function Profile(props: ProfileProps) {
</Typography> </Typography>
)} )}
</List> </List>
</Box>
</> </>
)} )}
</Box> </Box>