mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
Logs sample: Fix scrolling for unwrapped log lines (#64163)
Fix scrolling for logs sample
This commit is contained in:
parent
fa0f640d6a
commit
7b01668729
@ -95,16 +95,18 @@ export function LogsSamplePanel(props: Props) {
|
||||
LogsSamplePanelContent = (
|
||||
<>
|
||||
<OpenInSplitViewButton />
|
||||
<LogRows
|
||||
logRows={logs.rows}
|
||||
dedupStrategy={LogsDedupStrategy.none}
|
||||
showLabels={store.getBool(SETTINGS_KEYS.showLabels, false)}
|
||||
showTime={store.getBool(SETTINGS_KEYS.showTime, true)}
|
||||
wrapLogMessage={store.getBool(SETTINGS_KEYS.wrapLogMessage, true)}
|
||||
prettifyLogMessage={store.getBool(SETTINGS_KEYS.prettifyLogMessage, false)}
|
||||
timeZone={timeZone}
|
||||
enableLogDetails={true}
|
||||
/>
|
||||
<div className={styles.logContainer}>
|
||||
<LogRows
|
||||
logRows={logs.rows}
|
||||
dedupStrategy={LogsDedupStrategy.none}
|
||||
showLabels={store.getBool(SETTINGS_KEYS.showLabels, false)}
|
||||
showTime={store.getBool(SETTINGS_KEYS.showTime, true)}
|
||||
wrapLogMessage={store.getBool(SETTINGS_KEYS.wrapLogMessage, true)}
|
||||
prettifyLogMessage={store.getBool(SETTINGS_KEYS.prettifyLogMessage, false)}
|
||||
timeZone={timeZone}
|
||||
enableLogDetails={true}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -122,4 +124,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
top: ${theme.spacing(1)};
|
||||
right: ${theme.spacing(1)}; ;
|
||||
`,
|
||||
logContainer: css`
|
||||
overflow-x: scroll;
|
||||
`,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user