mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fixed unselectable quotes
This commit is contained in:
@ -917,14 +917,14 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
|
|||||||
|
|
||||||
if (this_chid != undefined && !isSystem)
|
if (this_chid != undefined && !isSystem)
|
||||||
mes = mes.replaceAll("<", "<").replaceAll(">", ">"); //for welcome message
|
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
|
mes = mes
|
||||||
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
||||||
.replace(/\n/g, "<br/>");
|
.replace(/\n/g, "<br/>");
|
||||||
} else if (!isSystem) {
|
} else if (!isSystem) {
|
||||||
mes = mes.replace(/```[\s\S]*?```|``[\s\S]*?``|`[\s\S]*?`|(\".+?\")/gm, function (match, p1) {
|
mes = mes.replace(/```[\s\S]*?```|``[\s\S]*?``|`[\s\S]*?`|(\".+?\")/gm, function (match, p1) {
|
||||||
if (p1) {
|
if (p1) {
|
||||||
return "<q>" + p1.replace(/\"/g, "") + "</q>";
|
return '<q>"' + p1.replace(/\"/g, "") + '"</q>';
|
||||||
} else {
|
} else {
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
|
@ -458,6 +458,12 @@ code {
|
|||||||
color: var(--SmartThemeBodyColor);
|
color: var(--SmartThemeBodyColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mes q:before,
|
||||||
|
.mes q:after {
|
||||||
|
content: '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.last_mes {
|
.last_mes {
|
||||||
grid-template-columns: [checkbox] fit-content(60px) [avatar-leftswipe] 50px [name-mestext] auto [edit-rightswipe] 30px !important;
|
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;
|
grid-template-rows: [avatar-NameMesText-edit] 50px [swipes] auto;
|
||||||
|
Reference in New Issue
Block a user