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
f39fd765
Commit
f39fd765
authored
Dec 13, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: minor style changes
parent
666e8e83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
18 deletions
+10
-18
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
+2
-11
public/sass/components/_json_explorer.scss
+5
-3
public/sass/components/_panel_editor.scss
+3
-4
No files found.
public/app/features/dashboard/dashgrid/VisualizationTab.tsx
View file @
f39fd765
...
...
@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
import
{
getAngularLoader
,
AngularComponent
}
from
'app/core/services/AngularLoader'
;
// Components
import
{
EditorTabBody
,
EditorToolBarView
}
from
'./EditorTabBody'
;
import
{
EditorTabBody
}
from
'./EditorTabBody'
;
import
{
VizTypePicker
}
from
'./VizTypePicker'
;
import
{
FadeIn
}
from
'app/core/components/Animations/FadeIn'
;
...
...
@@ -197,18 +197,9 @@ export class VisualizationTab extends PureComponent<Props, State> {
render
()
{
const
{
plugin
}
=
this
.
props
;
const
{
isVizPickerOpen
,
searchQuery
}
=
this
.
state
;
const
toolbarItems
:
EditorToolBarView
[]
=
[];
if
(
!
isVizPickerOpen
)
{
toolbarItems
.
push
({
title
:
''
,
icon
:
'fa fa-question'
,
render
:
()
=>
<
h2
>
Help
</
h2
>,
});
}
return
(
<
EditorTabBody
heading=
"Visualization"
renderToolbar=
{
this
.
renderToolbar
}
toolbarItems=
{
toolbarItems
}
>
<
EditorTabBody
heading=
"Visualization"
renderToolbar=
{
this
.
renderToolbar
}
>
<>
<
FadeIn
in=
{
isVizPickerOpen
}
duration=
{
200
}
unmountOnExit=
{
true
}
>
<
VizTypePicker
...
...
public/sass/components/_json_explorer.scss
View file @
f39fd765
...
...
@@ -21,10 +21,10 @@
display
:
none
;
}
&.
json-formatter-object
:
:
after
{
content
:
"No properties"
;
content
:
'No properties'
;
}
&.
json-formatter-array
:
:
after
{
content
:
"[]"
;
content
:
'[]'
;
}
}
}
...
...
@@ -33,7 +33,9 @@
color
:
$json-explorer-string-color
;
white-space
:
normal
;
word-wrap
:
break-word
;
word-break
:
break-all
;
}
.json-formatter-number
{
color
:
$json-explorer-number-color
;
}
...
...
@@ -87,7 +89,7 @@
&
:
:
after
{
display
:
inline-block
;
transition
:
transform
$json-explorer-rotate-time
ease-in
;
content
:
"►"
;
content
:
'►'
;
}
}
...
...
public/sass/components/_panel_editor.scss
View file @
f39fd765
...
...
@@ -132,8 +132,7 @@
}
.viz-picker
{
background
:
$toolbar-bg
;
margin
:
-40px
-20px
40px
-20px
;
margin-top
:
-40px
;
padding
:
20px
;
position
:
relative
;
}
...
...
@@ -144,8 +143,8 @@
}
.viz-picker__item
{
background
:
$panel-
editor-viz-item-
bg
;
border
:
$panel-
editor-viz-item-
border
;
background
:
$panel-bg
;
border
:
$panel-border
;
border-radius
:
3px
;
height
:
100px
;
width
:
150px
;
...
...
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