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
72e269c8
Unverified
Commit
72e269c8
authored
Feb 21, 2019
by
Torkel Ödegaard
Committed by
GitHub
Feb 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15572 from grafana/gauge-minor-fix
Minor fix/polish to gauge panel and threshold editor
parents
745fd685
b4627ec3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
packages/grafana-ui/src/components/Gauge/Gauge.tsx
+2
-2
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx
+1
-1
No files found.
packages/grafana-ui/src/components/Gauge/Gauge.tsx
View file @
72e269c8
...
...
@@ -115,9 +115,9 @@ export class Gauge extends PureComponent<Props> {
getFontScale
(
length
:
number
):
number
{
if
(
length
>
12
)
{
return
FONT_SCALE
-
(
length
*
5
)
/
1
2
0
;
return
FONT_SCALE
-
(
length
*
5
)
/
1
1
0
;
}
return
FONT_SCALE
-
(
length
*
5
)
/
10
5
;
return
FONT_SCALE
-
(
length
*
5
)
/
10
0
;
}
draw
()
{
...
...
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx
View file @
72e269c8
...
...
@@ -55,7 +55,7 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
const
value
=
afterThresholdValue
-
(
afterThresholdValue
-
beforeThresholdValue
)
/
2
;
// Set a color
const
color
=
colors
.
filter
(
c
=>
!
newThresholds
.
some
(
t
=>
t
.
color
===
c
))[
0
];
const
color
=
colors
.
filter
(
c
=>
!
newThresholds
.
some
(
t
=>
t
.
color
===
c
))[
1
];
this
.
setState
(
{
...
...
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