mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Responsive fixes.
This commit is contained in:
parent
3d8402d2f1
commit
8a66603d32
16 changed files with 302 additions and 231 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { ReactNode } from 'react';
|
||||
import { Heading, Icon, Row, RowProps, Text, Column } from '@umami/react-zen';
|
||||
import { Heading, Icon, Row, Text, Column, Grid } from '@umami/react-zen';
|
||||
|
||||
export function PageHeader({
|
||||
title,
|
||||
|
|
@ -8,7 +8,6 @@ export function PageHeader({
|
|||
icon,
|
||||
showBorder = true,
|
||||
children,
|
||||
...props
|
||||
}: {
|
||||
title: string;
|
||||
description?: string;
|
||||
|
|
@ -18,16 +17,13 @@ export function PageHeader({
|
|||
allowEdit?: boolean;
|
||||
className?: string;
|
||||
children?: ReactNode;
|
||||
} & RowProps) {
|
||||
}) {
|
||||
return (
|
||||
<Row
|
||||
justifyContent="space-between"
|
||||
alignItems="center"
|
||||
<Grid
|
||||
columns={{ xs: '1fr', md: '1fr 1fr' }}
|
||||
paddingY="6"
|
||||
marginBottom="6"
|
||||
border={showBorder ? 'bottom' : undefined}
|
||||
width="100%"
|
||||
{...props}
|
||||
>
|
||||
<Column gap="2">
|
||||
{label}
|
||||
|
|
@ -46,6 +42,6 @@ export function PageHeader({
|
|||
)}
|
||||
</Column>
|
||||
<Row justifyContent="flex-end">{children}</Row>
|
||||
</Row>
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue