mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Fix admin layout and data refresh after update/delete
This commit is contained in:
parent
c81b1c16c8
commit
ef55b63a3b
5 changed files with 29 additions and 13 deletions
|
|
@ -46,8 +46,15 @@ export function AdminLayout({ children }: { children: ReactNode }) {
|
|||
?.find(({ path }) => path && pathname.startsWith(path))?.id;
|
||||
|
||||
return (
|
||||
<Grid columns="auto 1fr" width="100%" height="100%">
|
||||
<Column height="100%" border="right" backgroundColor>
|
||||
<Grid columns={{ xs: '1fr', lg: 'auto 1fr' }} width="100%" height="100%">
|
||||
<Column
|
||||
display={{ xs: 'none', lg: 'flex' }}
|
||||
width="240px"
|
||||
height="100%"
|
||||
border="right"
|
||||
backgroundColor
|
||||
marginRight="2"
|
||||
>
|
||||
<SideMenu
|
||||
items={items}
|
||||
title={formatMessage(labels.admin)}
|
||||
|
|
@ -55,7 +62,9 @@ export function AdminLayout({ children }: { children: ReactNode }) {
|
|||
allowMinimize={false}
|
||||
/>
|
||||
</Column>
|
||||
<PageBody>{children}</PageBody>
|
||||
<Column gap="6" margin="2">
|
||||
<PageBody>{children}</PageBody>
|
||||
</Column>
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue