mirror of
https://github.com/prometheus/prometheus.git
synced 2024-09-19 23:37:31 -07:00
Always display HTTP params under the endpoint link
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
b37fe21f63
commit
e07dd8cd05
|
@ -1,4 +1,4 @@
|
|||
import { Anchor, Badge, Group } from "@mantine/core";
|
||||
import { Anchor, Badge, Group, Stack } from "@mantine/core";
|
||||
import { FC } from "react";
|
||||
|
||||
export interface EndpointLinkProps {
|
||||
|
@ -30,7 +30,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
|
|||
? endpoint.replace(search, "")
|
||||
: `${protocol}//${host}${pathname}`;
|
||||
return (
|
||||
<>
|
||||
<Stack gap={0}>
|
||||
<Anchor size="sm" href={globalUrl}>
|
||||
{displayLink}
|
||||
</Anchor>
|
||||
|
@ -51,7 +51,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
|
|||
})}
|
||||
</Group>
|
||||
)}
|
||||
</>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue