LogLine: improve log line pre-resize state

This commit is contained in:
Matias Chomicki
2025-07-01 11:16:35 +02:00
parent 510e96f422
commit a6b4ddded5
@@ -50,7 +50,7 @@ export const LogLine = ({
wrapLogMessage,
}: Props) => {
return (
<div style={style}>
<div style={style} className={logLineStyles.virtualizedWrapper}>
<LogLineComponent
displayedFields={displayedFields}
height={style.height}
@@ -68,6 +68,12 @@ export const LogLine = ({
);
};
const logLineStyles = {
virtualizedWrapper: css({
overflow: 'hidden',
}),
};
interface LogLineComponentProps extends Omit<Props, 'style'> {
height?: number | string;
}
@@ -380,7 +386,7 @@ export const getStyles = (theme: GrafanaTheme2, virtualization?: LogLineVirtuali
lineHeight: theme.typography.body.lineHeight,
wordBreak: 'break-all',
'&:hover': {
background: theme.isDark ? `hsla(0, 0%, 0%, 0.3)` : `hsla(0, 0%, 0%, 0.1)`,
background: theme.isDark ? `hsla(0, 0%, 0%, 0.2)` : `hsla(0, 0%, 0%, 0.1)`,
},
'&.infinite-scroll': {
'&::before': {