From 8d74d69d76a04063aa96f37e347fa5a1abf7aeae Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 22 Jan 2023 09:19:23 +0200 Subject: [PATCH] chat improvements --- files/assets/css/chat.css | 5 +++-- files/routes/chat.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/files/assets/css/chat.css b/files/assets/css/chat.css index 83cad7d18..b801d1cc1 100644 --- a/files/assets/css/chat.css +++ b/files/assets/css/chat.css @@ -27,7 +27,6 @@ .chat-mention { position: relative; - padding: 0 10px; } .chat-mention::before { @@ -38,6 +37,7 @@ left: 0; background-color: var(--primary); opacity: 0.2; + pointer-events: none !important; } p, h1, h2, h3, h4, h5 { @@ -80,7 +80,8 @@ p { .chat-line { overflow: hidden; - margin-left: 27px; + padding: 0 10px; + margin: 2px 0 2px 27px; } .quote, .del { diff --git a/files/routes/chat.py b/files/routes/chat.py index 09f65281f..cb76cbf24 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -81,7 +81,7 @@ def speak(data, v): id = str(uuid.uuid4()) data = { "id": id, - "quotes": quotes if quotes != 'undefined' else '', + "quotes": quotes if messages[request.referrer].get(quotes) else '', "hat": v.hat_active(v)[0], "user_id": v.id, "username": v.username,