Skip to content

Commit

Permalink
fix: ensure consistent text baseline alignment in groups card on home…
Browse files Browse the repository at this point in the history
… screen (#1314)
  • Loading branch information
paulschreiber authored Nov 22, 2023
1 parent 3ed68ef commit cbb3168
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/group/components/GroupsHomeCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ const GroupItem = ({ group, index }) => {
borderTop: index && `1px solid ${theme.palette.gray.lite1}`, // skip first item
}}
>
<Stack direction="row">
<Typography component="span">
<Link component={RouterLink} to={`/groups/${group.slug}`}>
{group.name}
</Link>
<Typography sx={{ ml: 1 }}>
({t(`group.role_${role.toLowerCase()}`)})
</Typography>
</Stack>
</Link>{' '}
({t(`group.role_${role.toLowerCase()}`)})
</Typography>
{!isApproved && (
<Typography color="text.secondary">
{t('group.home_pending_message')}
Expand Down

0 comments on commit cbb3168

Please sign in to comment.