Skip to content

Commit

Permalink
fix: updated TextCard image sizes and spacing in Account Drawer (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytlake committed Mar 12, 2024
1 parent 102fd8e commit 6c92f27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 3 additions & 1 deletion composable-ui/src/components/forms/login-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ export const LoginForm = ({
paddingTop={10}
spacing={6}
>
<Text textStyle={'Desktop/M'}>{content.notAMemberYet}</Text>
<Text textStyle={'Desktop/M'} pt={2} pb={4}>
{content.notAMemberYet}
</Text>
<Button
size={{ base: 'md', md: 'lg' }}
variant={'outline'}
Expand Down
18 changes: 7 additions & 11 deletions packages/ui/src/components/cms/text-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,15 @@ export const TextCard = ({
{...root}
>
{image?.src && (
<Box mb={6}>
<AspectRatio
ratio={1}
position="relative"
width="50px"
overflow="hidden"
mb={3}
>
<Image src={image.src} alt={image?.alt ?? ''} fill />
</AspectRatio>
<Box mb={6} position="relative">
<Image
src={image.src}
alt={image?.alt ?? ''}
width={50}
height={50}
/>
</Box>
)}

{title?.children && (
<Box
textStyle={['Desktop/Default', null, 'Desktop/M']}
Expand Down

1 comment on commit 6c92f27

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 46%
45.08% (436/967) 19.08% (54/283) 19.58% (38/194)

Please sign in to comment.