Skip to content

Commit

Permalink
Fine tune payments column alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Aug 15, 2024
1 parent 481e70b commit e5d287b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/pages/Roles/RolesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ function RolesHeader() {
color="neutral-7"
>
<Th>
<Flex>{t('role')}</Flex>
<Flex minW="10vw">{t('role')}</Flex>
</Th>

<Th>
<Flex minW="30vw">{t('member')}</Flex>
<Flex minW="20vw">{t('member')}</Flex>
</Th>

<Th>
<Flex justifyContent="center">{t('activePayments')}</Flex>
<Flex justifyContent="flex-end">{t('activePayments')}</Flex>
</Th>
</Tr>
</Thead>
Expand Down Expand Up @@ -145,7 +145,10 @@ function PaymentsColumn({ payments }: { payments?: SablierPayment[] }) {
const hasPayments = payments && payments.length > 0;
return (
<Td>
<Flex justifyContent="center">
<Flex
justifyContent="flex-end"
mr={hasPayments ? '1rem' : '2rem'}
>
{hasPayments ? (
<Box
bg="celery--2"
Expand All @@ -162,7 +165,7 @@ function PaymentsColumn({ payments }: { payments?: SablierPayment[] }) {
lineHeight="1rem"
align="center"
>
{payments?.length ?? 0}
{payments.length}
</Text>
</Box>
) : (
Expand Down

0 comments on commit e5d287b

Please sign in to comment.