summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/Layout.tsx
blob: d16882998d4197296653c2da492b7459705b6388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import styled from "styled-components";
import { defaultBorderRadius } from ".";
import { Outlet } from "react-router-dom";

const LayoutTopDiv = styled.div`
  height: 100%;
  border-radius: ${defaultBorderRadius};
  scrollbar-base-color: transparent;
  scrollbar-width: thin;
`;
const Layout = () => {
  return (
    <LayoutTopDiv>
      <div
        style={{
          scrollbarGutter: "stable both-edges",
          minHeight: "100%",
          display: "grid",
          gridTemplateRows: "1fr auto",
        }}
      >
        <Outlet />
      </div>
    </LayoutTopDiv>
  );
};

export default Layout;