mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 05:23:51 +08:00
802fb3b194
- gridified the thread message indicator, alleviating some problems with positioning and overflow participant avatars will overlap/smush on smaller size and mobile - the excerpt went from 3 > 2 lines of wrapping on smaller size, still 1 line on large size - dropped the copy of "last reply" - fixed wrong line height - moved the "x replies" over to the right near the participants, as that makes more sense - using a bubble to indicate other participants, instead of copy This PR introduces the @container query, which is experimental. Nothing will break when it's being viewed in a not-supported browser, but it will be less elegant.
25 lines
468 B
SCSS
25 lines
468 B
SCSS
.chat-message-thread-indicator {
|
|
grid-template-areas:
|
|
"avatar info info participants"
|
|
"excerpt excerpt excerpt replies";
|
|
|
|
.chat-thread-participants {
|
|
.avatar {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
}
|
|
|
|
&__last-reply-excerpt {
|
|
white-space: wrap;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
margin-top: 0.5rem;
|
|
margin-right: 0.25rem;
|
|
}
|
|
&__replies-count {
|
|
grid-area: replies;
|
|
}
|
|
}
|