File tree Expand file tree Collapse file tree 1 file changed +22
-7
lines changed
Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -285,13 +285,28 @@ 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+ { sseUrl ? (
289+ < Tooltip >
290+ < TooltipTrigger asChild >
291+ < Input
292+ id = "sse-url-input"
293+ placeholder = "URL"
294+ value = { sseUrl }
295+ onChange = { ( e ) => setSseUrl ( e . target . value ) }
296+ className = "font-mono"
297+ />
298+ </ TooltipTrigger >
299+ < TooltipContent > { sseUrl } </ TooltipContent >
300+ </ Tooltip >
301+ ) : (
302+ < Input
303+ id = "sse-url-input"
304+ placeholder = "URL"
305+ value = { sseUrl }
306+ onChange = { ( e ) => setSseUrl ( e . target . value ) }
307+ className = "font-mono"
308+ />
309+ ) }
295310 </ div >
296311 < div className = "space-y-2" >
297312 < Button
You can’t perform that action at this time.
0 commit comments