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
@@ -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 {
@@ -9,7 +9,7 @@
</p>
{{#if shippingNote}}
<p class='sf-info-box__title'>Typical shipping costs</p>
<p>{{shippingNote}}</p>
<p class='sf-user-text'>{{shippingNote}}</p>
{{/if}}
</div>
{{/if}}