Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c69c8bd4
Unverified
Commit
c69c8bd4
authored
Feb 09, 2021
by
Ivana Huckova
Committed by
GitHub
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explore: Remove emotion error when displaying logs (#31026)
* Remove emotion error * Remove redundant context variable
parent
b4623571
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
packages/grafana-ui/src/components/Logs/LogRowMessage.tsx
+1
-1
packages/grafana-ui/src/components/Logs/getLogRowStyles.ts
+7
-9
No files found.
packages/grafana-ui/src/components/Logs/LogRowMessage.tsx
View file @
c69c8bd4
...
@@ -117,7 +117,7 @@ class UnThemedLogRowMessage extends PureComponent<Props> {
...
@@ -117,7 +117,7 @@ class UnThemedLogRowMessage extends PureComponent<Props> {
)
}
)
}
</
span
>
</
span
>
{
showContextToggle
?.(
row
)
&&
(
{
showContextToggle
?.(
row
)
&&
(
<
span
onClick=
{
this
.
onContextToggle
}
className=
{
cx
(
style
.
context
)
}
>
<
span
onClick=
{
this
.
onContextToggle
}
className=
{
cx
(
'log-row-context'
,
style
.
context
)
}
>
{
contextIsOpen
?
'Hide'
:
'Show'
}
context
{
contextIsOpen
?
'Hide'
:
'Show'
}
context
</
span
>
</
span
>
)
}
)
}
...
...
packages/grafana-ui/src/components/Logs/getLogRowStyles.ts
View file @
c69c8bd4
...
@@ -7,13 +7,6 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
...
@@ -7,13 +7,6 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
let
logColor
=
theme
.
isLight
?
theme
.
palette
.
gray5
:
theme
.
palette
.
gray2
;
let
logColor
=
theme
.
isLight
?
theme
.
palette
.
gray5
:
theme
.
palette
.
gray2
;
const
hoverBgColor
=
styleMixins
.
hoverColor
(
theme
.
colors
.
panelBg
,
theme
);
const
hoverBgColor
=
styleMixins
.
hoverColor
(
theme
.
colors
.
panelBg
,
theme
);
const
context
=
css
`
label: context;
visibility: hidden;
white-space: nowrap;
position: relative;
`
;
switch
(
logLevel
)
{
switch
(
logLevel
)
{
case
LogLevel
.
crit
:
case
LogLevel
.
crit
:
case
LogLevel
.
critical
:
case
LogLevel
.
critical
:
...
@@ -61,7 +54,12 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
...
@@ -61,7 +54,12 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
label: logs-rows__horizontal-scroll;
label: logs-rows__horizontal-scroll;
overflow: auto;
overflow: auto;
`
,
`
,
context
:
context
,
context
:
css
`
label: context;
visibility: hidden;
white-space: nowrap;
position: relative;
`
,
logsRow
:
css
`
logsRow
:
css
`
label: logs-row;
label: logs-row;
width: 100%;
width: 100%;
...
@@ -69,7 +67,7 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
...
@@ -69,7 +67,7 @@ export const getLogRowStyles = stylesFactory((theme: GrafanaTheme, logLevel?: Lo
vertical-align: top;
vertical-align: top;
&:hover {
&:hover {
.
${
context
}
{
.
log-row-context
{
visibility: visible;
visibility: visible;
z-index: 1;
z-index: 1;
margin-left: 10px;
margin-left: 10px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment