diff --git a/public/script.js b/public/script.js index 90f88bcba..824fa7bce 100644 --- a/public/script.js +++ b/public/script.js @@ -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'); diff --git a/public/style.css b/public/style.css index 752f1842b..820209bbe 100644 --- a/public/style.css +++ b/public/style.css @@ -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); }