mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 19:25:03 +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.
32 lines
707 B
SCSS
32 lines
707 B
SCSS
.chat-message-thread-indicator {
|
|
grid-template-areas:
|
|
"avatar info replies participants"
|
|
"avatar excerpt excerpt excerpt";
|
|
|
|
&__replies-count {
|
|
display: flex;
|
|
align-self: center;
|
|
}
|
|
}
|
|
|
|
@container (max-width: 400px) {
|
|
.chat-message-thread-indicator {
|
|
grid-template-areas:
|
|
"avatar info info participants"
|
|
"excerpt excerpt excerpt replies";
|
|
&__replies-count {
|
|
align-self: flex-start;
|
|
grid-area: replies;
|
|
justify-content: flex-end;
|
|
}
|
|
&__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;
|
|
}
|
|
}
|
|
}
|