Skip to content

Commit ec263f0

Browse files
committed
style: add streaming class to message content for styling
1 parent abfee43 commit ec263f0

File tree

1 file changed

+5
-1
lines changed
  • packages/agent-webapp/src/components

1 file changed

+5
-1
lines changed

packages/agent-webapp/src/components/chat.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export class ChatComponent extends LitElement {
343343
${message.role === 'assistant' && this.options.enableDebug
344344
? html`<azc-debug .message=${message}></azc-debug>`
345345
: nothing}
346-
<div class="content">${message.html}</div>
346+
<div class="content ${this.isStreaming ? 'streaming' : ''}">${message.html}</div>
347347
</div>
348348
<div class="message-role">
349349
${message.role === 'user' ? this.options.strings.user : this.options.strings.assistant}
@@ -656,6 +656,10 @@ export class ChatComponent extends LitElement {
656656
img {
657657
max-height: 150px;
658658
}
659+
660+
.streaming & {
661+
table-layout: fixed;
662+
}
659663
}
660664
thead tr {
661665
background: var(--primary);

0 commit comments

Comments
 (0)