Commit f8fa140a by Ivana Huckova Committed by GitHub

Fix log row when query is short (#21126)

parent 13073fa6
...@@ -80,6 +80,9 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo ...@@ -80,6 +80,9 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
} }
} }
} }
td:last-child {
width: 100%;
}
> td { > td {
padding-right: ${theme.spacing.sm}; padding-right: ${theme.spacing.sm};
...@@ -101,6 +104,7 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo ...@@ -101,6 +104,7 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
logsRowLevel: css` logsRowLevel: css`
label: logs-row__level; label: logs-row__level;
position: relative; position: relative;
max-width: 10px;
cursor: default; cursor: default;
&::after { &::after {
content: ''; content: '';
...@@ -117,10 +121,12 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo ...@@ -117,10 +121,12 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
position: relative; position: relative;
font-size: 9px; font-size: 9px;
padding-top: 5px; padding-top: 5px;
max-width: 15px;
`, `,
logsRowLocalTime: css` logsRowLocalTime: css`
label: logs-row__localtime; label: logs-row__localtime;
white-space: nowrap; white-space: nowrap;
max-width: 12.5em;
`, `,
logsRowLabels: css` logsRowLabels: css`
label: logs-row__labels; label: logs-row__labels;
...@@ -156,10 +162,10 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo ...@@ -156,10 +162,10 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
`, `,
logDetailsLabel: css` logDetailsLabel: css`
label: logs-row-details__label; label: logs-row-details__label;
max-width: 25em; max-width: 30em;
min-width: 15em; min-width: 20em;
padding: 0 ${theme.spacing.sm}; padding: 0 ${theme.spacing.sm};
word-break: break-all; overflow-wrap: break-word;
`, `,
logDetailsHeading: css` logDetailsHeading: css`
label: logs-row-details__heading; label: logs-row-details__heading;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment