mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 22:33:55 +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.
66 lines
1.3 KiB
SCSS
66 lines
1.3 KiB
SCSS
.chat-thread-participants {
|
|
margin-left: 0.5rem;
|
|
&__other-count {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 1px solid rgba(0, 0, 0, 0);
|
|
box-sizing: border-box;
|
|
font-size: var(--font-down-2);
|
|
color: var(--primary-very-low);
|
|
background: var(--secondary-high);
|
|
padding: 0.21em 0.42em;
|
|
border-radius: 1em;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__avatar-group {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
|
|
.chat-user-avatar-container {
|
|
padding: 0;
|
|
}
|
|
|
|
.chat-user-avatar {
|
|
width: auto !important;
|
|
|
|
.avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@container (max-width: 400px) {
|
|
.chat-thread-participants {
|
|
&__avatar-group {
|
|
flex-direction: row-reverse;
|
|
justify-content: flex-start;
|
|
.chat-user-avatar {
|
|
&:not(:first-child) {
|
|
margin-right: -12px;
|
|
}
|
|
.avatar {
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 1px solid var(--primary-very-low);
|
|
}
|
|
}
|
|
}
|
|
&__other-count {
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-right: -12px;
|
|
z-index: 1;
|
|
border: 1px solid var(--primary-very-low);
|
|
}
|
|
}
|
|
}
|