mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
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 {
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
max-width: 800px;
|
||||
max-width: 100%;
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
||||
@@ -47,7 +47,11 @@ export class ChatMessageUser extends WithDisposable(ShadowlessElement) {
|
||||
.images=${item.attachments}
|
||||
></chat-content-images>`
|
||||
: 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>
|
||||
</div>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user