-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathContainer.tsx
More file actions
35 lines (29 loc) · 839 Bytes
/
Container.tsx
File metadata and controls
35 lines (29 loc) · 839 Bytes
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
29
30
31
32
33
34
35
import styled, { StyledComponent } from '@emotion/styled';
import { DetailedHTMLProps, HTMLAttributes } from 'react';
import { prop } from 'styled-tools';
const Container: StyledComponent<
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>
> = styled.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
font-family: ${prop<any>('theme.typography.fontFamily')};
font-size: ${prop<any>('theme.typography.fontSize')};
& > *:first-child {
flex: 1;
overflow-y: auto;
::-webkit-scrollbar {
width: 0px; /* Remove scrollbar space */
background: transparent; /* Optional: just make scrollbar invisible */
}
}
& > *:not(:first-child) {
flex: unset;
}
& * {
font: inherit;
}
${prop<any>('theme.overrides.chat', '')};
`;
export default Container;