Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: css hover updates in log explorer (#10401)

Ishan0ab179b5df61
diff --git a/frontend/src/components/Logs/ListLogView/ListLogView.styles.scss b/frontend/src/components/Logs/ListLogView/ListLogView.styles.scss
index 9bcfa03ebb..4921c414a2 100644
--- a/frontend/src/components/Logs/ListLogView/ListLogView.styles.scss
+++ b/frontend/src/components/Logs/ListLogView/ListLogView.styles.scss
@@ -70,9 +70,6 @@
padding-left: 0;
}
transition: background-color 0.2s ease-in;
- &:hover {
- background-color: rgba(171, 189, 255, 0.04) !important;
- }
}
.log-selected-fields {
@@ -183,11 +180,6 @@
.log-value {
color: var(--text-slate-400);
}
- .log-line {
- &:hover {
- background-color: var(--text-vanilla-200) !important;
- }
- }
}
.dark {
diff --git a/frontend/src/components/Logs/ListLogView/styles.ts b/frontend/src/components/Logs/ListLogView/styles.ts
index 2763817ee2..c92594c07e 100644
--- a/frontend/src/components/Logs/ListLogView/styles.ts
+++ b/frontend/src/components/Logs/ListLogView/styles.ts
@@ -49,6 +49,12 @@ export const Container = styled(Card)<{
${({ $isActiveLog, $isDarkMode, $logType }): string =>
getActiveLogBackground($isActiveLog, $isDarkMode, $logType)}
+ }
+
+ &:hover .ant-card-body {
+ ${({ $isDarkMode, $logType }): string =>
+ getActiveLogBackground(true, $isDarkMode, $logType)}
+ }
`;
export const LogContainer = styled.div<LogContainerProps>`
diff --git a/frontend/src/components/Logs/RawLogView/styles.ts b/frontend/src/components/Logs/RawLogView/styles.ts
index 54cc89a45d..7986c6aeab 100644
--- a/frontend/src/components/Logs/RawLogView/styles.ts
+++ b/frontend/src/components/Logs/RawLogView/styles.ts
@@ -8,7 +8,6 @@ import styled from 'styled-components';
import {
getActiveLogBackground,
getCustomHighlightBackground,
- getDefaultLogBackground,
} from 'utils/logs';
import { RawLogContentProps } from './types';
@@ -48,7 +47,9 @@ export const RawLogViewContainer = styled(Row)<{
${({ $isReadOnly, $isActiveLog, $isDarkMode, $logType }): string =>
$isActiveLog
? getActiveLogBackground($isActiveLog, $isDarkMode, $logType)
- : getDefaultLogBackground($isReadOnly, $isDarkMode)}
+ : !$isReadOnly
+ ? `&:hover { ${getActiveLogBackground(true, $isDarkMode, $logType)} }`
+ : ''}
${({ $isHightlightedLog, $isDarkMode }): string =>
$isHightlightedLog
diff --git a/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts b/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts
index 2daeac7bc1..fa7a2d6620 100644
--- a/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts
+++ b/frontend/src/container/LogsExplorerList/InfinityTableView/styles.ts
@@ -70,12 +70,8 @@ export const TableRowStyled = styled.tr<{
&:hover {
${TableCellStyled} {
- ${({ $isActiveLog, $isDarkMode }): string =>
- $isActiveLog
- ? getActiveLogBackground()
- : `background-color: ${
- !$isDarkMode ? 'var(--bg-vanilla-200)' : 'rgba(171, 189, 255, 0.04)'
- }`}
+ ${({ $isDarkMode, $logType }): string =>
+ getActiveLogBackground(true, $isDarkMode, $logType)}
}
.log-line-action-buttons {
display: flex;