chore: one less div
This commit is contained in:
@@ -1,11 +1,20 @@
|
|||||||
import { Outlet } from 'react-router-dom';
|
import { css, Global } from '@emotion/react';
|
||||||
|
|
||||||
import { LayoutHeader, SettingsSidebar } from '@toeverything/components/layout';
|
import { LayoutHeader, SettingsSidebar } from '@toeverything/components/layout';
|
||||||
import { styled } from '@toeverything/components/ui';
|
import { styled } from '@toeverything/components/ui';
|
||||||
|
import { Outlet } from 'react-router-dom';
|
||||||
|
|
||||||
export function LigoVirgoRootContainer() {
|
export function LigoVirgoRootContainer() {
|
||||||
return (
|
return (
|
||||||
<StyledRootContainer id="idAppRoot">
|
<>
|
||||||
|
<Global
|
||||||
|
styles={css`
|
||||||
|
#root {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
/>
|
||||||
<StyledContentContainer>
|
<StyledContentContainer>
|
||||||
<LayoutHeader />
|
<LayoutHeader />
|
||||||
<StyledMainContainer>
|
<StyledMainContainer>
|
||||||
@@ -13,7 +22,7 @@ export function LigoVirgoRootContainer() {
|
|||||||
</StyledMainContainer>
|
</StyledMainContainer>
|
||||||
</StyledContentContainer>
|
</StyledContentContainer>
|
||||||
<SettingsSidebar />
|
<SettingsSidebar />
|
||||||
</StyledRootContainer>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,12 +32,6 @@ const StyledMainContainer = styled('div')({
|
|||||||
overflowY: 'hidden',
|
overflowY: 'hidden',
|
||||||
});
|
});
|
||||||
|
|
||||||
const StyledRootContainer = styled('div')({
|
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'row',
|
|
||||||
height: '100vh',
|
|
||||||
});
|
|
||||||
|
|
||||||
const StyledContentContainer = styled('div')({
|
const StyledContentContainer = styled('div')({
|
||||||
flex: 'auto',
|
flex: 'auto',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|||||||
Reference in New Issue
Block a user