mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:02:24 +08:00
9c8043a4d2
* FEATURE: Enforce mention limits for chat messages The first part of these changes adds a new setting called `max_mentions_per_chat_message`, which skips notifications when the message contains too many mentions. It also respects the `max_users_notified_per_group_mention` setting and skips notifications if expanding a group mention would exceed it. We also include a new component to display JIT warning for these limits to the user while composing a message. * Simplify ignoring/muting filter in chat_notifier * Post-send warnings for unsent warnings * Improve pluralization * Address review feedback * Fix test * Address second feedback round * Third round of feedback Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
31 lines
564 B
SCSS
31 lines
564 B
SCSS
.chat-mention-warnings {
|
|
display: flex;
|
|
background: var(--tertiary-low);
|
|
padding: 0.5em 0 0.5em 1em;
|
|
color: var(--primary);
|
|
margin: 0.5em;
|
|
|
|
.chat-mention-warning__icon,
|
|
.chat-mention-warning__text {
|
|
margin: 0.5em;
|
|
}
|
|
|
|
.chat-mention-warnings-list__simple {
|
|
margin: 0.5em 0 0 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.chat-mention-warnings-list__multiple {
|
|
margin: 0.5em 0 0 1em;
|
|
}
|
|
|
|
.chat-mention-warning__header,
|
|
.chat-mention-warning__icon {
|
|
font-size: var(--font-up-2);
|
|
}
|
|
}
|
|
|
|
.full-page-chat .chat-mention-warnings {
|
|
top: 4rem;
|
|
}
|