diff --git a/public/script.js b/public/script.js index df75244e1..e84602a15 100644 --- a/public/script.js +++ b/public/script.js @@ -917,14 +917,14 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) { if (this_chid != undefined && !isSystem) mes = mes.replaceAll("<", "<").replaceAll(">", ">"); //for welcome message - if ((this_chid === undefined || this_chid == "invalid-safety-id") && !selected_group) { + if ((this_chid === undefined || this_chid == "invalid-safety-id") && !selected_group) { mes = mes .replace(/\*\*(.+?)\*\*/g, "$1") .replace(/\n/g, "
"); } else if (!isSystem) { mes = mes.replace(/```[\s\S]*?```|``[\s\S]*?``|`[\s\S]*?`|(\".+?\")/gm, function (match, p1) { if (p1) { - return "" + p1.replace(/\"/g, "") + ""; + return '"' + p1.replace(/\"/g, "") + '"'; } else { return match; } diff --git a/public/style.css b/public/style.css index 6908f52f0..61e64952d 100644 --- a/public/style.css +++ b/public/style.css @@ -458,6 +458,12 @@ code { color: var(--SmartThemeBodyColor); } +.mes q:before, +.mes q:after { + content: ''; + +} + .last_mes { grid-template-columns: [checkbox] fit-content(60px) [avatar-leftswipe] 50px [name-mestext] auto [edit-rightswipe] 30px !important; grid-template-rows: [avatar-NameMesText-edit] 50px [swipes] auto;