Add tooltip for URL field

A quick way to see the full URL if it's cut off

Inspired by @cliffhall's
[comment](https://github.com/modelcontextprotocol/inspector/pull/459#issuecomment-2932277785)
This commit is contained in:
Marc Abramowitz 2025-06-03 22:54:19 -07:00
commit 5da1dc3256

View file

@ -285,13 +285,20 @@ const Sidebar = ({
<label className="text-sm font-medium" htmlFor="sse-url-input">
URL
</label>
<Input
id="sse-url-input"
placeholder="URL"
value={sseUrl}
onChange={(e) => setSseUrl(e.target.value)}
className="font-mono"
/>
<Tooltip>
<TooltipTrigger asChild>
<Input
id="sse-url-input"
placeholder="URL"
value={sseUrl}
onChange={(e) => setSseUrl(e.target.value)}
className="font-mono"
/>
</TooltipTrigger>
<TooltipContent>
{sseUrl || `Enter URL to MCP server`}
</TooltipContent>
</Tooltip>
</div>
<div className="space-y-2">
<Button