mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 05:29:04 +08:00
fix: the tag key flickering when moving from traces to logs (#6054)
This commit is contained in:
parent
5e5f0f167f
commit
df2844ea74
@ -235,16 +235,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.resource {
|
&.resource {
|
||||||
border: 1px solid rgba(242, 71, 105, 0.2);
|
border: 1px solid #4bcff920;
|
||||||
|
|
||||||
.ant-typography {
|
.ant-typography {
|
||||||
color: var(--bg-sakura-400);
|
color: var(--bg-aqua-400);
|
||||||
background: rgba(245, 108, 135, 0.1);
|
background: #4bcff910;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tag-close-icon {
|
.ant-tag-close-icon {
|
||||||
background: rgba(245, 108, 135, 0.1);
|
background: #4bcff910;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.tag {
|
&.tag {
|
||||||
@ -343,15 +343,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.resource {
|
&.resource {
|
||||||
border: 1px solid rgba(242, 71, 105, 0.2);
|
border: 1px solid #4bcff920;
|
||||||
|
|
||||||
.ant-typography {
|
.ant-typography {
|
||||||
color: var(--bg-sakura-400);
|
color: var(--bg-aqua-400);
|
||||||
background: rgba(245, 108, 135, 0.1);
|
background: #4bcff910;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tag-close-icon {
|
.ant-tag-close-icon {
|
||||||
background: rgba(245, 108, 135, 0.1);
|
background: #4bcff910;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.tag {
|
&.tag {
|
||||||
|
@ -729,7 +729,8 @@ function QueryBuilderSearchV2(
|
|||||||
}, [tags]);
|
}, [tags]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isEqual(query.filters.items, tags)) {
|
// convert the query and tags to same format before comparison
|
||||||
|
if (!isEqual(getInitTags(query), tags)) {
|
||||||
setTags(getInitTags(query));
|
setTags(getInitTags(query));
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
@ -769,7 +770,7 @@ function QueryBuilderSearchV2(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const queryTags = useMemo(
|
const queryTags = useMemo(
|
||||||
() => tags.map((tag) => `${tag.key.key} ${tag.op} ${tag.value}`),
|
() => tags.map((tag) => `${tag.key?.key} ${tag.op} ${tag.value}`),
|
||||||
[tags],
|
[tags],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -77,14 +77,14 @@
|
|||||||
|
|
||||||
&.resource {
|
&.resource {
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
background: rgba(245, 108, 135, 0.1) !important;
|
background: #4bcff910 !important;
|
||||||
color: var(--bg-sakura-400) !important;
|
color: var(--bg-aqua-400) !important;
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
background-color: var(--bg-sakura-400);
|
background-color: var(--bg-aqua-400);
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
color: var(--bg-sakura-400);
|
color: var(--bg-aqua-400);
|
||||||
font-family: Inter;
|
font-family: Inter;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user