mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 11:53:51 +08:00
52e8d57293
This commit will now allow us to track read position in a thread and returns to this position when you open the thread. Note this commit is also extracting the following components to make it possible: - `<ChatMessagesScroller />` - `<ChatMessagesContainer />` The `UpdateUserThreadLastRead` has been updated to allow this. Various refactorings have also been done to the code and specs to improve the support of last read.
15 lines
328 B
SCSS
15 lines
328 B
SCSS
.chat-messages-scroller {
|
|
flex-grow: 1;
|
|
overflow-y: scroll;
|
|
overscroll-behavior: contain;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
z-index: 1;
|
|
margin: 0 1px 0 0;
|
|
will-change: transform;
|
|
@include chat-scrollbar();
|
|
min-height: 1px;
|
|
box-sizing: border-box;
|
|
transition: padding-top 0.2s ease-in-out;
|
|
}
|