feat: provide and consume scroll offsets

This commit is contained in:
Paul Makles
2021-12-30 18:15:31 +00:00
parent 52d4de001d
commit ac9d175298
17 changed files with 113 additions and 97 deletions

View File

@@ -29,20 +29,17 @@ import ChannelHeader from "./ChannelHeader";
import { MessageArea } from "./messaging/MessageArea";
import VoiceHeader from "./voice/VoiceHeader";
const ChannelMain = styled.div`
const ChannelMain = styled.div.attrs({ "data-component": "channel" })`
flex-grow: 1;
display: flex;
min-height: 0;
overflow: hidden;
flex-direction: row;
> * > ::-webkit-scrollbar-thumb {
background-clip: content-box;
border-top: 48px solid transparent;
}
`;
const ChannelContent = styled.div`
const ChannelContent = styled.div.attrs({
"data-component": "content",
})`
flex-grow: 1;
display: flex;
overflow: hidden;