Skip to content

Commit

Permalink
fix: component AssetDrawer header margin
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Dec 17, 2024
1 parent 1112947 commit 35b8013
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/Drawer/docs/examples/asset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ const Example = () => {
</>
}
icon={UserIcon}
subtitle="Praesent sit amet quam ac velit faucibus dapibus. Quisque sapien ligula, rutrum quis aliquam
nec, convallis sit amet erat."
title="Praesent sit amet quam"
subtitle="Praesent sit amet quam ac velit faucibus dapibus. Quisque sapien ligula, rutrum quis aliquam nec, convallis sit amet erat."
title="Praesent sit amet quam faucibus dapibus"
/>
Praesent sit amet quam ac velit faucibus dapibus. Quisque sapien ligula, rutrum quis aliquam
nec, convallis sit amet erat. Mauris auctor blandit porta.Praesent sit amet quam ac velit
Expand Down
12 changes: 8 additions & 4 deletions packages/Drawer/src/AssetDrawer/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,17 @@ export const Header: React.FC<HeaderProps> = ({
)}
{!!icon && <IconBlock icon={icon} />}
<Box display="flex" flexDirection="column" gap="xxs">
<Text variant="h3">{title}</Text>
<Text pr="xl" variant="h3">
{title}
</Text>
{subtitle}
</Box>
</Box>
<Box alignItems="center" display="flex" flexShrink={0} gap="md">
{action}
</Box>
{action && (
<Box alignItems="center" display="flex" flexShrink={0} gap="md">
{action}
</Box>
)}
</Box>
)
}
Expand Down

0 comments on commit 35b8013

Please sign in to comment.