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

21 lines
437 B
TypeScript
Raw Normal View History

2022-05-12 20:35:46 +02:00
export const ScrollableBody: React.FC<React.PropsWithChildren<{}>> = (
props
) => {
2021-10-24 05:48:06 +02:00
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>
</>
)
}