FIX: minor chat styleguide fixes (#23849)

- makes message take full width
- allows to remove the thread state
- removes non-existing component (mention warning)
This commit is contained in:
Joffrey JAFFEUX 2023-10-09 18:25:57 +02:00 committed by GitHub
parent fcc9d99ba2
commit 245e9f30a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,6 @@
<Styleguide::ChatThreadListItem /> <Styleguide::ChatThreadListItem />
<Styleguide::ChatComposerMessageDetails /> <Styleguide::ChatComposerMessageDetails />
<Styleguide::ChatHeaderIcon /> <Styleguide::ChatHeaderIcon />
<Styleguide::ChatMessageMentionWarning />
<h2>Modals</h2> <h2>Modals</h2>

View File

@ -115,6 +115,11 @@ export default class ChatMessage {
} }
set thread(thread) { set thread(thread) {
if (!thread) {
this._thread = null;
return;
}
this._thread = this.channel.threadsManager.add(this.channel, thread, { this._thread = this.channel.threadsManager.add(this.channel, thread, {
replace: true, replace: true,
}); });

View File

@ -177,6 +177,7 @@
.chat-message-container { .chat-message-container {
background-color: var(--d-content-background, var(--secondary)); background-color: var(--d-content-background, var(--secondary));
width: 100%;
&.-errored { &.-errored {
color: var(--primary-medium); color: var(--primary-medium);