Skip to content

Commit 0e45e95

Browse files
committed
change styling of service reference in api explorer
1 parent dc3a642 commit 0e45e95

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

pkg/dashboard/frontend/src/components/apis/APIExplorer.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -511,18 +511,13 @@ const APIExplorer = () => {
511511
<div className={'flex items-start gap-1'}>
512512
<Tooltip>
513513
<TooltipTrigger asChild>
514-
<Button
515-
asChild
516-
variant="link"
514+
<a
517515
data-testid="requesting-service"
518516
className="text-md h-auto p-0 hover:underline"
517+
href={`vscode://file/${data?.services.find((svc) => svc.name === selectedApiEndpoint.requestingService)?.filePath}`}
519518
>
520-
<a
521-
href={`vscode://file/${data?.services.find((svc) => svc.name === selectedApiEndpoint.requestingService)?.filePath}`}
522-
>
523-
{selectedApiEndpoint.requestingService}
524-
</a>
525-
</Button>
519+
{selectedApiEndpoint.requestingService}
520+
</a>
526521
</TooltipTrigger>
527522
<TooltipContent>
528523
<p>Open in VSCode</p>

0 commit comments

Comments
 (0)