mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 00:43:43 +08:00
7dafd275ac
- FIX: improves reactions and thread indicator touch event on mobile These "buttons" are located inside a scroll list which makes them very specific. The general idea is to ensure these events are passive and are not bubbling to the parent. - DEV: moves state on top level message node - FIX: ensures popover arrow has the correct border - FIX: makes a message expanded by default - FIX applies the same ios scroll fix on thread and channel - UI: better active/hover state for thread indicator - UI: attempts to follow more closely our BEM naming scheme - FIX: reduces bottom padding on message with thread indicator and user info hidden - UI: add padding for first message in thread - FIX: prevents actions backdrop to open thread - UI: makes thread indicator resizable
103 lines
1.7 KiB
SCSS
103 lines
1.7 KiB
SCSS
.chat-message-thread-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
cursor: pointer;
|
|
grid-area: threadindicator;
|
|
max-width: 1000px;
|
|
background-color: var(--primary-very-low);
|
|
margin: 4px 0 -2px calc(var(--message-left-width) - 0.25rem);
|
|
padding-block: 0.5rem;
|
|
padding-inline: 0.5rem;
|
|
border-radius: 8px;
|
|
color: var(--primary);
|
|
|
|
> * {
|
|
pointer-events: none;
|
|
}
|
|
|
|
&:visited,
|
|
&:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.touch & {
|
|
&.-active {
|
|
box-shadow: var(--shadow-dropdown);
|
|
}
|
|
}
|
|
|
|
.no-touch & {
|
|
&:hover {
|
|
box-shadow: var(--shadow-dropdown);
|
|
}
|
|
}
|
|
|
|
&__participants {
|
|
flex-shrink: 0;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
&__last-reply-avatar {
|
|
align-self: flex-start;
|
|
.chat-user-avatar {
|
|
width: auto !important;
|
|
}
|
|
}
|
|
|
|
&__last-reply-metadata {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 0.25rem;
|
|
color: var(--primary-medium);
|
|
|
|
.separator {
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
|
|
&__last-reply-container {
|
|
display: inline-flex;
|
|
align-items: flex-end;
|
|
font-size: var(--font-down-1);
|
|
min-width: 0;
|
|
|
|
.relative-date {
|
|
@include ellipsis;
|
|
}
|
|
}
|
|
|
|
&__last-reply-user {
|
|
font-weight: bold;
|
|
color: var(--secondary-low);
|
|
}
|
|
|
|
&__last-reply-username {
|
|
font-weight: bold;
|
|
color: var(--secondary-low);
|
|
}
|
|
|
|
&__last-reply-excerpt {
|
|
@include ellipsis;
|
|
line-height: 1.8rem;
|
|
}
|
|
|
|
&__body {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
&:hover {
|
|
.chat-message-thread-indicator__replies-count {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
&__replies-count {
|
|
@include ellipsis;
|
|
color: var(--tertiary);
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|