mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 18:43:44 +08:00
55c4a550c1
This feature adds the replying indicator in threads, it uses the same `/chat-reply/CHANNEL_ID` prefix than the channel composer replying indicator as we don't have specific right on threads ATM (if you can access channel, you can access thread). Thread will however use a presence channel name of the following format: `/chat-reply/CHANNEL_ID/thread/THREAD_ID` This commit also simplifies the computation of `users` to eventually avoid a race-condition leading to a leak of the indicator in another channel/thread. <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
31 lines
668 B
SCSS
31 lines
668 B
SCSS
.chat-thread {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
&__header {
|
|
height: var(--chat-header-offset);
|
|
min-height: var(--chat-header-offset);
|
|
border-bottom: 1px solid var(--primary-low);
|
|
border-top: 1px solid var(--primary-low);
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-inline: 1rem;
|
|
}
|
|
|
|
&__body {
|
|
overflow-y: scroll;
|
|
@include chat-scrollbar();
|
|
margin: 2px;
|
|
padding-right: 2px;
|
|
box-sizing: border-box;
|
|
flex-grow: 1;
|
|
overscroll-behavior: contain;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|