Skip to content

Commit

Permalink
feat(apps/web): Move icon inside heading.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov committed Jan 26, 2025
1 parent f423688 commit 57853d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/web/src/components/layout/pageTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ interface PageTitleProps {
const PageTitle: FC<PageTitleProps> = ({ title, Icon }) => {
return (
<Group mb="sm" data-testid="page-title">
<Icon size={40} />
<Title order={1}>{title}</Title>
<Title order={1} display="inline-flex">
<Icon
size={40}
aria-hidden
style={{ marginRight: "0.5rem", marginTop: "0.215rem" }}
/>
{title}
</Title>
</Group>
);
};
Expand Down

0 comments on commit 57853d1

Please sign in to comment.