fix(core): ai user message word break failed (#12347)
 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated chat content containers to use the full available width, improving display on different screen sizes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -8,7 +8,7 @@ export class ChatContentPureText extends ShadowlessElement {
|
|||||||
.chat-content-pure-text {
|
.chat-content-pure-text {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
max-width: 800px;
|
max-width: 100%;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|||||||
@@ -47,7 +47,11 @@ export class ChatMessageUser extends WithDisposable(ShadowlessElement) {
|
|||||||
.images=${item.attachments}
|
.images=${item.attachments}
|
||||||
></chat-content-images>`
|
></chat-content-images>`
|
||||||
: nothing}
|
: nothing}
|
||||||
<div class="text-content-wrapper" data-test-id="chat-content-user-text">
|
<div
|
||||||
|
class="text-content-wrapper"
|
||||||
|
data-test-id="chat-content-user-text"
|
||||||
|
style="max-width: 100%;"
|
||||||
|
>
|
||||||
<chat-content-pure-text .text=${item.content}></chat-content-pure-text>
|
<chat-content-pure-text .text=${item.content}></chat-content-pure-text>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user