mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:53:44 +08:00
91c5658e9b
Since we have channel message retention which deletes messages, we can end up with cases where the thread is still around but the message is deleted. We will handle the cascade delete in a different commit -- for now we will ensure the thread list lookup handles this case and doesn't error.
30 lines
543 B
SCSS
30 lines
543 B
SCSS
.chat-thread-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
&__items {
|
|
overflow-y: scroll;
|
|
@include chat-scrollbar();
|
|
box-sizing: border-box;
|
|
flex-grow: 1;
|
|
overscroll-behavior: contain;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.chat-thread-list-item {
|
|
margin: 0.5rem 0.25rem 0.5rem 0.5rem;
|
|
|
|
& + .chat-thread-list-item {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__no-threads {
|
|
@include thread-list-item;
|
|
margin: 0.5rem 0rem 0.5rem 0.5rem;
|
|
}
|
|
}
|