-
+ sidebarState === 'open' ? (
+ <>
+
Timezone:}
action={
@@ -73,18 +102,24 @@ export default function SidebarComponent(props: {}) {
}
/>
-
-
- >
+
+ >
+ ) : (
+ <>>
+ )
}
bottomLabel={
-
-
-
+ sidebarState === 'open' ? (
+
+
+
+ ) : (
+ <>>
+ )
}
>
}
>
- Peers
+ {sidebarState === 'open' && 'Peers'}
}
>
- Mirrors
+ {sidebarState === 'open' && 'Mirrors'}
}
>
- Alert Configuration
+ {sidebarState === 'open' && 'Alert Configuration'}
diff --git a/ui/lib/Layout/Layout.styles.ts b/ui/lib/Layout/Layout.styles.ts
index d9ac6fadd0..61fc360aa6 100644
--- a/ui/lib/Layout/Layout.styles.ts
+++ b/ui/lib/Layout/Layout.styles.ts
@@ -1,25 +1,17 @@
import styled from 'styled-components';
export const LayoutWrapper = styled.div`
- display: grid;
- grid-template-columns: 250px auto;
+ display: flex;
background-color: ${({ theme }) => theme.colors.base.background.normal};
min-height: 100vh;
+ width: 100vw;
`;
-export type ContentWrapperProps = {
- $fullWidth?: boolean;
-};
-
-export const ContentWrapper = styled.div
`
- grid-column: ${({ $fullWidth = false }) =>
- $fullWidth ? '1 / -1' : '2 / -1'};
+export const ContentWrapper = styled.div`
background-color: ${({ theme }) => theme.colors.base.background.normal};
padding: ${({ theme }) => theme.spacing.medium};
- overflow-y: auto;
-
- display: grid;
height: 100vh;
+ width: 100%;
overflow-y: auto;
`;
diff --git a/ui/lib/Layout/Layout.tsx b/ui/lib/Layout/Layout.tsx
index 97222c0f65..28b41fed65 100644
--- a/ui/lib/Layout/Layout.tsx
+++ b/ui/lib/Layout/Layout.tsx
@@ -81,12 +81,11 @@ type LayoutProps = PropsWithChildren<{
}>;
export function Layout({ sidebar, children }: LayoutProps) {
const Sidebar = isDefined(sidebar) && sidebar;
- const fullWidth = !isDefined(sidebar);
return (
{Sidebar}
- {children}
+ {children}
);
}