From 7d2e4d488847ba3c7d4bebf382596bf605399a25 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Wed, 15 Feb 2023 11:36:30 +0200 Subject: [PATCH] Style a system message. Fix up spacing in bias --- public/index.html | 8 ++++++-- public/style.css | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index c05c4828c..e6a43c065 100644 --- a/public/index.html +++ b/public/index.html @@ -758,10 +758,14 @@ let curMatch; while( curMatch = rxp.exec(message) ) { - found.push(curMatch[1]); + found.push(curMatch[1].trim()); } - return found.join(' '); + if (!found.length) { + return ''; + } + + return ` ${found.join(' ')} `; } $( "#send_but" ).click(function() { diff --git a/public/style.css b/public/style.css index 4c8c7b38b..0674fafa8 100644 --- a/public/style.css +++ b/public/style.css @@ -48,6 +48,12 @@ body { font-weight: bold; color: rgb(229, 224, 216); } +.mes_text li tt { + min-width: 80px; + display: inline-block; + color: grey !important; + text-align: right; +} .mes_bias { display: block; font-size: 0.9rem;