[mirotalk] - change chat a-href color

This commit is contained in:
Miroslav Pejic
2022-09-20 13:04:17 +02:00
parent be5123ba52
commit 84dcbf6e5e
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -442,6 +442,14 @@ body {
background: transparent;
}
.msg-a {
color: #fff;
}
.msg-a:hover {
color: var(--hover-color);
transition: all 0.3s ease-in-out;
}
#chat-msg-a {
color: #fff;
}
+1 -1
View File
@@ -4573,7 +4573,7 @@ function checkMsg(text) {
if (isHtml(text)) return stripHtml(text);
if (isValidHttpURL(text)) {
if (isImageURL(text)) return '<img src="' + text + '" alt="img" width="180" height="auto"/>';
return '<a href="' + text + '" target="_blank">' + text + '</a>';
return '<a href="' + text + '" target="_blank" class="msg-a">' + text + '</a>';
}
if (isChatMarkdownOn) return marked.parse(text);
let pre = '<pre>' + text + '</pre>';