From f6a9dbef413d7dbbcd4255474ab1670cb6dec711 Mon Sep 17 00:00:00 2001
From: defnax <9952056+defnax@users.noreply.github.com>
Date: Mon, 6 Jul 2026 20:50:20 +0200
Subject: [PATCH] removed bubble chat from rooms
---
webui-src/app/chat/chat.js | 35 +++++++++++++++++++--
webui-src/app/scss/pages/_chat.scss | 49 +++++++++++++++++++++++++++++
2 files changed, 82 insertions(+), 2 deletions(-)
diff --git a/webui-src/app/chat/chat.js b/webui-src/app/chat/chat.js
index 6f6f57a..578fd3c 100644
--- a/webui-src/app/chat/chat.js
+++ b/webui-src/app/chat/chat.js
@@ -56,6 +56,16 @@ function sortLobbies(lobbies) {
return []; // return empty array instead of undefined
}
+function getNicknameColor(id, name) {
+ const hashString = id && id !== '00000000000000000000000000000000' ? id : (name || '');
+ let hash = 0;
+ for (let i = 0; i < hashString.length; i++) {
+ hash = hashString.charCodeAt(i) + ((hash << 5) - hash);
+ }
+ const hue = Math.abs(hash) % 360;
+ return `hsl(${hue}, 75%, 35%)`;
+}
+
// ***************************** models ***********************************
const MobileState = {
@@ -191,6 +201,20 @@ const Message = () => {
const text = (msg.msg || msg.message || '')
.replaceAll('
', '\n')
.replace(new RegExp('