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
87688930
Commit
87688930
authored
May 22, 2019
by
Filip Barl
Committed by
Torkel Ödegaard
May 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Panels: Show Drilldown links in top-left corner of custom React panels (#17142)
parent
e9130210
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx
+3
-3
public/sass/components/_panel_header.scss
+9
-0
No files found.
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderCorner.tsx
View file @
87688930
...
...
@@ -48,7 +48,7 @@ export class PanelHeaderCorner extends Component<Props> {
const
remarkableInterpolatedMarkdown
=
new
Remarkable
().
render
(
interpolatedMarkdown
);
return
(
<
div
className=
"markdown-html"
>
<
div
className=
"
panel-info-content
markdown-html"
>
<
div
dangerouslySetInnerHTML=
{
{
__html
:
remarkableInterpolatedMarkdown
}
}
/>
{
panel
.
links
&&
panel
.
links
.
length
>
0
&&
(
<
ul
className=
"text-left"
>
...
...
@@ -71,7 +71,7 @@ export class PanelHeaderCorner extends Component<Props> {
renderCornerType
(
infoMode
:
InfoMode
,
content
:
string
|
JSX
.
Element
)
{
const
theme
=
infoMode
===
InfoMode
.
Error
?
'error'
:
'info'
;
return
(
<
Tooltip
content=
{
content
}
placement=
"
bottom
-start"
theme=
{
theme
}
>
<
Tooltip
content=
{
content
}
placement=
"
top
-start"
theme=
{
theme
}
>
<
div
className=
{
`panel-info-corner panel-info-corner--${infoMode.toLowerCase()}`
}
>
<
i
className=
"fa"
/>
<
span
className=
"panel-info-corner-inner"
/>
...
...
@@ -91,7 +91,7 @@ export class PanelHeaderCorner extends Component<Props> {
return
this
.
renderCornerType
(
infoMode
,
this
.
props
.
error
);
}
if
(
infoMode
===
InfoMode
.
Info
)
{
if
(
infoMode
===
InfoMode
.
Info
||
infoMode
===
InfoMode
.
Links
)
{
return
this
.
renderCornerType
(
infoMode
,
this
.
getInfoContent
());
}
...
...
public/sass/components/_panel_header.scss
View file @
87688930
...
...
@@ -167,6 +167,15 @@ $panel-header-no-title-zindex: 1;
}
}
.panel-info-content
{
a
{
color
:
$white
;
&
:hover
{
color
:
darken
(
$white
,
10%
);
}
}
}
.panel-time-info
{
font-weight
:
$font-weight-semi-bold
;
float
:
right
;
...
...
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