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:
Vikrant Gupta 2024-02-15 16:25:55 +05:30 committed by GitHub
parent 4e75479831
commit 548c531956
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { defaultTo } from 'lodash-es';
import { ILog } from 'types/api/logs/log';
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') {
flattenLogObject[key] = log[key as never];
} 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];
});
}

View File

@ -224,3 +224,21 @@ body {
margin-left: 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;
}
}
}
}