Skip to content

Commit ae1062b

Browse files
committed
fix: prevent user message box horizontal overflow on mobile viewports
Closes anomalyco#6200
1 parent 2946a6d commit ae1062b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/ui/src/components/message-part.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
display: flex;
1919
flex-direction: column;
2020
gap: 8px;
21+
min-width: 0;
22+
max-width: 100%;
2123

2224
[data-slot="user-message-attachments"] {
2325
display: flex;
@@ -74,6 +76,8 @@
7476
[data-slot="user-message-text"] {
7577
white-space: pre-wrap;
7678
overflow: hidden;
79+
overflow-wrap: break-word;
80+
word-break: break-word;
7781
background: var(--surface-inset-base);
7882
padding: 6px 12px;
7983
border-radius: 4px;

0 commit comments

Comments
 (0)