From 2ecfdb0f2e23d07258ccbd84d78e0ae97d08a5cc Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Thu, 5 Jun 2025 00:25:18 -0700 Subject: [PATCH] Display tooltip only if sseUrl is set. --- client/src/components/Sidebar.tsx | 38 +++++++++++++++++++------------ 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index 1b7f78e9..279933fc 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -285,20 +285,30 @@ const Sidebar = ({ - - - setSseUrl(e.target.value)} - className="font-mono" - /> - - - {sseUrl || `Enter URL to MCP server`} - - + {sseUrl ? ( + + + setSseUrl(e.target.value)} + className="font-mono" + /> + + + {sseUrl} + + + ) : ( + setSseUrl(e.target.value)} + className="font-mono" + /> + )}