Wrap long unbroken text in chat and delivery content.

overflow-wrap: anywhere lets addresses and similar strings break inside the bubble instead of stretching the layout.
This commit is contained in:
2026-11-24 23:26:15 +00:00
parent a6e60408d6
commit 35feda1278
4 changed files with 26 additions and 2 deletions
+5
View File
@@ -224,6 +224,7 @@ const scrollToBottom = async (): Promise<void> => {
border-radius: 14px;
line-height: 1.45;
max-width: min(100%, 560px);
min-width: 0;
}
.order-chat-message--buyer .order-chat-bubble {
@@ -237,7 +238,11 @@ const scrollToBottom = async (): Promise<void> => {
}
.order-chat-body {
max-width: 100%;
min-width: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
}
.order-chat-delete {
@@ -145,9 +145,11 @@ const downloadAttachment = async (
}
.auto-delivery-item__content {
max-width: 100%;
min-width: 0;
font-size: var(--el-font-size-small);
white-space: pre-wrap;
overflow-wrap: break-word;
overflow-wrap: anywhere;
word-break: break-word;
}