mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 18:25:54 +08:00
fix: dashboard panel light theme (#4556)
* fix: dashboard panel light theme * fix: logs pipeline page crashing on opening context for stimulated logs * fix: logs pipeline page crashing on opening context for stimulated logs
This commit is contained in:
parent
4e75479831
commit
548c531956
@ -1,3 +1,4 @@
|
|||||||
|
import { defaultTo } from 'lodash-es';
|
||||||
import { ILog } from 'types/api/logs/log';
|
import { ILog } from 'types/api/logs/log';
|
||||||
|
|
||||||
export function FlatLogData(log: ILog): Record<string, string> {
|
export function FlatLogData(log: ILog): Record<string, string> {
|
||||||
@ -7,7 +8,7 @@ export function FlatLogData(log: ILog): Record<string, string> {
|
|||||||
if (typeof log[key as never] !== 'object') {
|
if (typeof log[key as never] !== 'object') {
|
||||||
flattenLogObject[key] = log[key as never];
|
flattenLogObject[key] = log[key as never];
|
||||||
} else {
|
} else {
|
||||||
Object.keys(log[key as never]).forEach((childKey) => {
|
Object.keys(defaultTo(log[key as never], {})).forEach((childKey) => {
|
||||||
flattenLogObject[childKey] = log[key as never][childKey];
|
flattenLogObject[childKey] = log[key as never][childKey];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -224,3 +224,21 @@ body {
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lightMode {
|
||||||
|
.ant-dropdown-menu {
|
||||||
|
border: 1px solid var(--bg-vanilla-300);
|
||||||
|
background: var(--bg-vanilla-100);
|
||||||
|
box-shadow: 4px 10px 16px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-dropdown-menu-item {
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--bg-vanilla-300) !important;
|
||||||
|
|
||||||
|
&.ant-dropdown-menu-item-danger {
|
||||||
|
background-color: var(--bg-cherry-500) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user