diff --git a/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.styles.scss b/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.styles.scss index 88ae57f4e8..e325b85113 100644 --- a/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.styles.scss +++ b/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.styles.scss @@ -12,6 +12,10 @@ font-weight: 400; line-height: 18px; letter-spacing: -0.005em; + &, + &:hover { + color: var(--text-vanilla-400); + } } &__key { background: var(--bg-ink-400); @@ -20,13 +24,15 @@ &__value { background: var(--bg-slate-400); } - color: var(--text-vanilla-400); } .lightMode { .key-value-label { border-color: var(--bg-vanilla-400); - color: var(--text-ink-400); + &__key, + &__value { + color: var(--text-ink-400); + } &__key { background: var(--bg-vanilla-300); } diff --git a/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.tsx b/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.tsx index 377c647a3f..c0987ccff1 100644 --- a/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.tsx +++ b/frontend/src/periscope/components/KeyValueLabel/KeyValueLabel.tsx @@ -1,6 +1,7 @@ import './KeyValueLabel.styles.scss'; import { Tooltip } from 'antd'; +import { useMemo } from 'react'; import TrimmedText from '../TrimmedText/TrimmedText'; @@ -15,19 +16,33 @@ export default function KeyValueLabel({ badgeValue, maxCharacters = 20, }: KeyValueLabelProps): JSX.Element | null { + const isUrl = useMemo(() => /^https?:\/\//.test(badgeValue), [badgeValue]); + if (!badgeKey || !badgeValue) { return null; } + return (
- -
+ {isUrl ? ( + -
-
+ + ) : ( + +
+ +
+
+ )}
); } diff --git a/signoz-core-ui b/signoz-core-ui new file mode 160000 index 0000000000..f8c925d842 --- /dev/null +++ b/signoz-core-ui @@ -0,0 +1 @@ +Subproject commit f8c925d842922f8a30063012a7bfb688a3bf0f36