diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index f4e35131..ac403a3f 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -956,8 +956,11 @@ To get started, just start typing below. You can also type / to see a list of co websocket.onclose = function(event) { websocket = null; console.log("WebSocket is closed now."); - let greenDot = document.getElementById("connected-green-dot"); - greenDot.style.display = "none"; + let statusDotIcon = document.getElementById("connection-status-icon"); + statusDotIcon.style.backgroundColor = "red"; + let statusDotText = document.getElementById("connection-status-text"); + statusDotText.style.marginTop = "5px"; + statusDotText.innerHTML = ''; } websocket.onerror = function(event) { console.log("WebSocket error observed:", event); @@ -965,8 +968,11 @@ To get started, just start typing below. You can also type / to see a list of co websocket.onopen = function(event) { console.log("WebSocket is open now.") - let greenDot = document.getElementById("connected-green-dot"); - greenDot.style.display = "flex"; + let statusDotIcon = document.getElementById("connection-status-icon"); + statusDotIcon.style.backgroundColor = "green"; + let statusDotText = document.getElementById("connection-status-text"); + statusDotText.style.marginTop = "10px"; + statusDotText.textContent = "Connected to Server"; // Setup the timeout to close the connection after inactivity. resetTimeout(); @@ -1298,7 +1304,7 @@ To get started, just start typing below. You can also type / to see a list of co conversationId = chatBody.dataset.conversationId; if (data.length > 0) { - conversationListBodyHeader.style.display = "block"; + conversationListBodyHeader.style.display = "inline-flex"; for (let index in data) { let conversation = data[index]; let conversationButton = document.createElement('div'); @@ -1551,26 +1557,26 @@ To get started, just start typing below. You can also type / to see a list of co
- - -
- + +