Skip to content

Commit 21d1840

Browse files
authored
Merge pull request #292 from FlowiseAI/bugfix/Long-Link
Feat/add css for word wrap
2 parents a687390 + a81fb4a commit 21d1840

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

dist/web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/index.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ textarea {
200200
.chatbot-host-bubble {
201201
color: var(--chatbot-host-bubble-color);
202202
background-color: #f7f8ff;
203+
/* force wrapping of long text or links */
204+
overflow-wrap: break-word;
205+
word-wrap: break-word;
206+
word-break: break-word;
207+
/* ensure it actually wraps instead of running off the screen */
208+
white-space: normal;
203209
}
204210

205211
.chatbot-host-bubble > .bubble-typing {
@@ -218,6 +224,12 @@ textarea {
218224
color: var(--chatbot-guest-bubble-color);
219225
background-color: #3b81f6;
220226
border-radius: 6px;
227+
/* force wrapping of long text or links */
228+
overflow-wrap: break-word;
229+
word-wrap: break-word;
230+
word-break: break-word;
231+
/* ensure it actually wraps instead of running off the screen */
232+
white-space: normal;
221233
}
222234

223235
.chatbot-input,

0 commit comments

Comments
 (0)