This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/components/ScrollableBody/ScrollableBody.tsx

19 lines
404 B
TypeScript
Raw Permalink Normal View History

2021-10-24 05:48:06 +02:00
export const ScrollableBody: React.FC = (props) => {
const { children } = props
return (
<>
{children}
<style jsx global>{`
body {
scrollbar-width: thin;
scrollbar-color: var(--scroll-bar-color) var(--scroll-bar-bg-color);
z-index: 1000;
height: calc(100vh - 64px);
overflow-y: auto;
}
`}</style>
</>
)
}