Skip to content

Commit

Permalink
Fix message item sizing and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
juiceo committed Apr 16, 2023
1 parent a9d8d22 commit 28a332b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/MessagesList/ExpenseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const ExpenseItem = (props: Props) => {
alignSelf="stretch"
overflow="hidden"
position="relative"
pt={4}
>
{!!expense.image && (
<Box mb="2" background="black">
Expand All @@ -62,7 +61,7 @@ const ExpenseItem = (props: Props) => {
>
{moment(expense.createdAt).format('HH:mm')}
</Text>
<Box p="6" pt={0} alignItems="center" justifyContent="center" display="flex" flexDirection="column">
<Box p="6" pt={4} alignItems="center" justifyContent="center" display="flex" flexDirection="column">
<Text fontSize="xs" align="center" color="whiteAlpha.900">
<Box m={2} alignItems="center" display="flex" flexDir="column">
<Avatar my={1} size="sm" src={payer?.image ?? ''} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessagesList/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const MessageItem = (props: Props) => {
{!hideName && <Text fontSize="xs">{getUserDisplayName(sender, 'short')}</Text>}
<Stack
direction="row"
maxWidth="300px"
maxWidth="100%"
flex={0}
alignItems="flex-end"
justifyContent="space-between"
Expand Down

0 comments on commit 28a332b

Please sign in to comment.