Remove autohide and blur from individual message

This commit is contained in:
SillyLossy
2023-04-08 12:01:53 +03:00
parent 0d087d6908
commit 9c5b14d634
2 changed files with 7 additions and 5 deletions

View File

@ -793,8 +793,6 @@ function printMessages() {
chat.forEach(function (item, i, arr) {
addOneMessage(item);
});
$('#chat .mes').addClass('auto_hide');
}
function clearChat() {
@ -940,6 +938,12 @@ function addOneMessage(mes, type = "normal", insertAfter = null) {
}
/*
const lastMes = $('#chat .mes').last().get(0);
const rect = lastMes.getBoundingClientRect();
lastMes.style.containIntrinsicSize = `${rect.width}px ${rect.height}px`;
*/
// Don't scroll if not inserting last
if (!insertAfter) {
$('#chat .mes').last().addClass('last_mes');

View File

@ -3115,7 +3115,6 @@ body.bubblechat #chat {
overflow-y: scroll;
display: flex;
bottom: 10px;
-webkit-backdrop-filter: blur(10px);
text-shadow: #000 0 0 3px;
scrollbar-width: thin;
transition: all 1s ease-in-out;
@ -3145,8 +3144,7 @@ body.bubblechat .mes {
padding: 10px;
width: 100%;
border-radius: 20px;
backdrop-filter: blur(10px);
background-color: var(--black60a);
background-color: var(--black70a);
margin-top: 10px;
border: 1px solid rgba(255,255,255,0.2);
}