From 9c5b14d6345cae869111ae7e8f510ead1d19db30 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Sat, 8 Apr 2023 12:01:53 +0300 Subject: [PATCH] Remove autohide and blur from individual message --- public/script.js | 8 ++++++-- public/style.css | 4 +--- 2 files changed, 7 insertions(+), 5 deletions(-) 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); }