From 199b68a964b821a3ab427d80bd94ee12d5e5f6da Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Sat, 13 Apr 2024 02:30:40 -0400 Subject: [PATCH] Highlight current session --- src/UI/UIWindowManageSessions.js | 3 +++ src/css/style.css | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/UI/UIWindowManageSessions.js b/src/UI/UIWindowManageSessions.js index 1debb5da..b985f8cb 100644 --- a/src/UI/UIWindowManageSessions.js +++ b/src/UI/UIWindowManageSessions.js @@ -28,6 +28,9 @@ const UIWindowManageSessions = async function UIWindowManageSessions () { const SessionWidget = ({ session }) => { const el = document.createElement('div'); el.classList.add('session-widget'); + if ( session.current ) { + el.classList.add('current-session'); + } el.dataset.uuid = session.uuid; // '
' +
         //    JSON.stringify(session, null, 2) +
diff --git a/src/css/style.css b/src/css/style.css
index 17694e5b..e6be6989 100644
--- a/src/css/style.css
+++ b/src/css/style.css
@@ -3738,6 +3738,10 @@ label {
     gap: 4px;
 }
 
+.current-session.session-widget {
+    background-color: #f0f0f0;
+}
+
 .session-widget-uuid {
     font-size: 12px;
     font-weight: 600;