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

@@ -33,14 +33,18 @@ import Preloader from "../../../components/ui/Preloader";
import ConversationStart from "./ConversationStart";
import MessageRenderer from "./MessageRenderer";
const Area = styled.div`
const Area = styled.div.attrs({ "data-scroll-offset": "with-padding" })`
height: 100%;
flex-grow: 1;
min-height: 0;
word-break: break-word;
overflow-x: hidden;
overflow-y: scroll;
padding-top: 48px;
word-break: break-word;
&::-webkit-scrollbar-thumb {
min-height: 150px;
}
> div {
display: flex;