:zap: [Enhance] Auto wrap url in content
Browse files
apps/llm_mixer/js/default.css
CHANGED
@@ -68,6 +68,15 @@
|
|
68 |
margin-bottom: 0;
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
@keyframes blink {
|
72 |
0% {
|
73 |
background-color: transparent;
|
|
|
68 |
margin-bottom: 0;
|
69 |
}
|
70 |
|
71 |
+
/* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
|
72 |
+
.message-viewer .role-displayer,
|
73 |
+
.message-viewer .content-displayer {
|
74 |
+
overflow-wrap: break-word;
|
75 |
+
word-wrap: break-word;
|
76 |
+
word-break: break-word;
|
77 |
+
hyphens: auto;
|
78 |
+
}
|
79 |
+
|
80 |
@keyframes blink {
|
81 |
0% {
|
82 |
background-color: transparent;
|
apps/llm_mixer/js/main.js
CHANGED
@@ -80,7 +80,7 @@ function adjust_messagers_container_max_height() {
|
|
80 |
var page_height = $(window).height();
|
81 |
$("#chat-session-container").css(
|
82 |
"max-height",
|
83 |
-
page_height - user_interaction_height
|
84 |
);
|
85 |
}
|
86 |
|
|
|
80 |
var page_height = $(window).height();
|
81 |
$("#chat-session-container").css(
|
82 |
"max-height",
|
83 |
+
page_height - user_interaction_height + "px"
|
84 |
);
|
85 |
}
|
86 |
|