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
8be735a6
Unverified
Commit
8be735a6
authored
Jul 04, 2020
by
Torkel Ödegaard
Committed by
GitHub
Jul 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TextPanel: Fixed issue with new react text panel (#26061)
parent
c5cd9c56
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
public/app/plugins/panel/text/TextPanel.tsx
+12
-1
No files found.
public/app/plugins/panel/text/TextPanel.tsx
View file @
8be735a6
...
...
@@ -6,6 +6,8 @@ import { PanelProps, renderMarkdown, textUtil } from '@grafana/data';
import
config
from
'app/core/config'
;
// Types
import
{
TextOptions
}
from
'./types'
;
import
{
stylesFactory
}
from
'@grafana/ui'
;
import
{
css
,
cx
}
from
'emotion'
;
interface
Props
extends
PanelProps
<
TextOptions
>
{}
interface
State
{
...
...
@@ -75,7 +77,16 @@ export class TextPanel extends PureComponent<Props, State> {
render
()
{
const
{
html
}
=
this
.
state
;
const
styles
=
getStyles
();
return
<
div
className=
"markdown-html panel-text-content"
dangerouslySetInnerHTML=
{
{
__html
:
html
}
}
/>;
return
<
div
className=
{
cx
(
'markdown-html'
,
styles
.
content
)
}
dangerouslySetInnerHTML=
{
{
__html
:
html
}
}
/>;
}
}
const
getStyles
=
stylesFactory
(()
=>
{
return
{
content
:
css
`
height: 100%;
`
,
};
});
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