From 35feda12781d4327ab759e224b3e9495475c65c6 Mon Sep 17 00:00:00 2001
From: nobswebdev
Date: Tue, 24 Nov 2026 23:26:15 +0000
Subject: [PATCH] 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.
---
.../storefrontCore/public/css/storefront.css | 17 +++++++++++++++++
.../views/partials/manual-shipping-info.hbs | 2 +-
cms/src/components/OrderChatPanel.vue | 5 +++++
.../OrderLineAutoFulfillmentModal.vue | 4 +++-
4 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/backend/src/modules/storefrontCore/public/css/storefront.css b/backend/src/modules/storefrontCore/public/css/storefront.css
index 645cd3d..0f53d88 100644
--- a/backend/src/modules/storefrontCore/public/css/storefront.css
+++ b/backend/src/modules/storefrontCore/public/css/storefront.css
@@ -531,6 +531,14 @@ a:hover {
margin: 0;
}
+.sf-user-text {
+ max-width: 100%;
+ min-width: 0;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ word-break: break-word;
+}
+
.sf-info-box p + p,
.sf-info-box p + .sf-info-box__title {
margin-top: var(--sf-space-3);
@@ -1448,8 +1456,11 @@ a:hover {
.sf-delivery-item__content {
margin: 0;
+ max-width: 100%;
+ min-width: 0;
font-size: 0.85rem;
white-space: pre-wrap;
+ overflow-wrap: anywhere;
word-break: break-word;
line-height: 1.45;
}
@@ -1510,6 +1521,8 @@ a:hover {
.sf-chat-bubble {
position: relative;
+ max-width: 100%;
+ min-width: 0;
border-radius: 0.875rem;
padding: var(--sf-space-3);
line-height: 1.45;
@@ -1525,7 +1538,11 @@ a:hover {
.sf-chat-bubble p {
margin: 0;
+ max-width: 100%;
+ min-width: 0;
white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ word-break: break-word;
}
.sf-chat-meta {
diff --git a/backend/src/modules/storefrontCore/views/partials/manual-shipping-info.hbs b/backend/src/modules/storefrontCore/views/partials/manual-shipping-info.hbs
index 724bc63..af264b0 100644
--- a/backend/src/modules/storefrontCore/views/partials/manual-shipping-info.hbs
+++ b/backend/src/modules/storefrontCore/views/partials/manual-shipping-info.hbs
@@ -9,7 +9,7 @@
{{#if shippingNote}}
Typical shipping costs
- {{shippingNote}}
+ {{shippingNote}}
{{/if}}
{{/if}}
diff --git a/cms/src/components/OrderChatPanel.vue b/cms/src/components/OrderChatPanel.vue
index fd39af5..e8375d1 100644
--- a/cms/src/components/OrderChatPanel.vue
+++ b/cms/src/components/OrderChatPanel.vue
@@ -224,6 +224,7 @@ const scrollToBottom = async (): Promise => {
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 => {
}
.order-chat-body {
+ max-width: 100%;
+ min-width: 0;
white-space: pre-wrap;
+ overflow-wrap: anywhere;
+ word-break: break-word;
}
.order-chat-delete {
diff --git a/cms/src/components/OrderLineAutoFulfillmentModal.vue b/cms/src/components/OrderLineAutoFulfillmentModal.vue
index 7c43814..8409b11 100644
--- a/cms/src/components/OrderLineAutoFulfillmentModal.vue
+++ b/cms/src/components/OrderLineAutoFulfillmentModal.vue
@@ -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;
}