@@ -2270,16 +2270,16 @@ Current version indicated by LITEVER below.
22702270 max-width: 75%;
22712271 }
22722272
2273- .chat_received_withd_msg p {
2273+ .chat_received_withd_msg .chat_para {
22742274 font-size: 14px;
22752275 margin: 0;
2276- padding: 5px 10px 5px 12px;
22772276 width: 100%;
22782277 white-space: pre-wrap;
22792278 }
22802279
22812280 .chat_received_withd_msg {
22822281 width: 100%;
2282+ padding: 5px 10px 5px 12px;
22832283 background: var(--theme_color_ai_msg_bg) none repeat scroll 0 0;
22842284 border-radius: 0 15px 15px 15px;
22852285 color: var(--theme_color_ai_msg_fg);
@@ -2292,11 +2292,10 @@ Current version indicated by LITEVER below.
22922292 .chat_mesgs_inner{
22932293 padding: 2px 12px 2px 12px;
22942294 }
2295- .chat_sent_msg p {
2295+ .chat_sent_msg .chat_para {
22962296 font-size: 14px;
22972297 margin: 0;
22982298 color: var(--theme_color_user_msg_fg);
2299- padding: 5px 10px 5px 12px;
23002299 width: 100%;
23012300 white-space: pre-wrap;
23022301 }
@@ -2306,6 +2305,7 @@ Current version indicated by LITEVER below.
23062305 overflow:auto;
23072306 background: var(--theme_color_user_msg_bg);
23082307 border-radius: 12px 15px 0px 15px;
2308+ padding: 5px 10px 5px 12px;
23092309 }
23102310 .chat_outgoing_msg {
23112311 overflow: hidden;
@@ -7185,7 +7185,7 @@ Current version indicated by LITEVER below.
71857185 .then((data) => {
71867186 console.log("sync finished response: " + JSON.stringify(data));
71877187 last_response_obj = JSON.parse(JSON.stringify(data));
7188- if ((custom_oai_key != "" || determine_if_mcp_active()) && data.choices != null && data.choices.length > 0) {
7188+ if ((custom_oai_key != "" || is_using_kcpp_with_jinja() || determine_if_mcp_active()) && data.choices != null && data.choices.length > 0) {
71897189 let dch = data.choices[0];
71907190 if (dch.text) {
71917191 synchro_polled_response = dch.text;
@@ -26570,7 +26570,7 @@ Current version indicated by LITEVER below.
2657026570 {
2657126571 namepart = "";
2657226572 }
26573- newbodystr += `<div class="chat_outgoing_msg"><div class="chat_sent_msg"><p >`+namepart+curr.msg+`</p ></div></div>`;
26573+ newbodystr += `<div class="chat_outgoing_msg"><div class="chat_sent_msg"><span class="chat_para" >`+namepart+curr.msg+`</span ></div></div>`;
2657426574 }else{
2657526575 let oname = (curr.name?escape_html(curr.name):"");
2657626576 let onametrim = oname.trim();
@@ -26584,13 +26584,13 @@ Current version indicated by LITEVER below.
2658426584 {
2658526585 namepart = "";
2658626586 }
26587- newbodystr += `<div class="incoming_msg"><div class="chat_received_msg"><div class="chat_received_withd_msg"><p >`+namepart+curr.msg+`</p ></div></div></div>`;
26587+ newbodystr += `<div class="incoming_msg"><div class="chat_received_msg"><div class="chat_received_withd_msg"><span class="chat_para" >`+namepart+curr.msg+`</span ></div></div></div>`;
2658826588 }
2658926589
2659026590 }
2659126591 if(synchro_pending_stream!="")
2659226592 {
26593- newbodystr += `<div class="incoming_msg"><div class="chat_received_msg"><div class="chat_received_withd_msg"><p ><span class="color_pendingtext pending_text">` + escape_html(pending_context_preinjection) + format_streaming_text(escape_html(synchro_pending_stream)) + `</span></p ></div></div></div>`;
26593+ newbodystr += `<div class="incoming_msg"><div class="chat_received_msg"><div class="chat_received_withd_msg"><span class="chat_para" ><span class="color_pendingtext pending_text">` + escape_html(pending_context_preinjection) + format_streaming_text(escape_html(synchro_pending_stream)) + `</span></span ></div></div></div>`;
2659426594 }
2659526595
2659626596 return newbodystr;
0 commit comments