Skip to content

Commit 5da1dc3

Browse files
committed
Add tooltip for URL field
A quick way to see the full URL if it's cut off Inspired by @cliffhall's [comment](#459 (comment))
1 parent 7df0ac4 commit 5da1dc3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

client/src/components/Sidebar.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,20 @@ const Sidebar = ({
285285
<label className="text-sm font-medium" htmlFor="sse-url-input">
286286
URL
287287
</label>
288-
<Input
289-
id="sse-url-input"
290-
placeholder="URL"
291-
value={sseUrl}
292-
onChange={(e) => setSseUrl(e.target.value)}
293-
className="font-mono"
294-
/>
288+
<Tooltip>
289+
<TooltipTrigger asChild>
290+
<Input
291+
id="sse-url-input"
292+
placeholder="URL"
293+
value={sseUrl}
294+
onChange={(e) => setSseUrl(e.target.value)}
295+
className="font-mono"
296+
/>
297+
</TooltipTrigger>
298+
<TooltipContent>
299+
{sseUrl || `Enter URL to MCP server`}
300+
</TooltipContent>
301+
</Tooltip>
295302
</div>
296303
<div className="space-y-2">
297304
<Button

0 commit comments

Comments
 (0)