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
521c8f34
Commit
521c8f34
authored
Jan 18, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved add query button to the right
parent
4c9046d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
public/app/features/dashboard/panel_editor/EditorTabBody.tsx
+5
-8
public/app/features/dashboard/panel_editor/QueriesTab.tsx
+8
-9
public/sass/components/_toolbar.scss
+6
-0
No files found.
public/app/features/dashboard/panel_editor/EditorTabBody.tsx
View file @
521c8f34
...
@@ -111,14 +111,11 @@ export class EditorTabBody extends PureComponent<Props, State> {
...
@@ -111,14 +111,11 @@ export class EditorTabBody extends PureComponent<Props, State> {
return
(
return
(
<>
<>
<
div
className=
"toolbar"
>
<
div
className=
"toolbar"
>
<
div
className=
"toolbar__heading"
>
{
heading
}
</
div
>
<
div
className=
"toolbar__left"
>
{
renderToolbar
&&
renderToolbar
()
}
<
div
className=
"toolbar__heading"
>
{
heading
}
</
div
>
{
toolbarItems
.
length
>
0
&&
(
{
renderToolbar
&&
renderToolbar
()
}
<>
</
div
>
<
div
className=
"gf-form--grow"
/>
{
toolbarItems
.
map
(
item
=>
this
.
renderButton
(
item
))
}
{
toolbarItems
.
map
(
item
=>
this
.
renderButton
(
item
))
}
</>
)
}
</
div
>
</
div
>
<
div
className=
"panel-editor__scroll"
>
<
div
className=
"panel-editor__scroll"
>
<
CustomScrollbar
autoHide=
{
false
}
scrollTop=
{
scrollTop
}
setScrollTop=
{
setScrollTop
}
>
<
CustomScrollbar
autoHide=
{
false
}
scrollTop=
{
scrollTop
}
setScrollTop=
{
setScrollTop
}
>
...
...
public/app/features/dashboard/panel_editor/QueriesTab.tsx
View file @
521c8f34
...
@@ -18,7 +18,7 @@ import config from 'app/core/config';
...
@@ -18,7 +18,7 @@ import config from 'app/core/config';
// Types
// Types
import
{
PanelModel
}
from
'../panel_model'
;
import
{
PanelModel
}
from
'../panel_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
DashboardModel
}
from
'../dashboard_model'
;
import
{
DataQuery
,
DataSourceSelectItem
}
from
'@grafana/ui/src/types'
;
import
{
DataQuery
,
DataSourceSelectItem
}
from
'@grafana/ui/src/types'
;
import
{
PluginHelp
}
from
'app/core/components/PluginHelp/PluginHelp'
;
import
{
PluginHelp
}
from
'app/core/components/PluginHelp/PluginHelp'
;
interface
Props
{
interface
Props
{
...
@@ -133,14 +133,13 @@ export class QueriesTab extends PureComponent<Props, State> {
...
@@ -133,14 +133,13 @@ export class QueriesTab extends PureComponent<Props, State> {
return
(
return
(
<>
<>
<
DataSourcePicker
datasources=
{
this
.
datasources
}
onChange=
{
this
.
onChangeDataSource
}
current=
{
currentDS
}
/>
<
DataSourcePicker
datasources=
{
this
.
datasources
}
onChange=
{
this
.
onChangeDataSource
}
current=
{
currentDS
}
/>
<
div
className=
"m-l-2"
>
<
div
className=
"flex-grow"
/>
{
!
isAddingMixed
&&
(
{
!
isAddingMixed
&&
(
<
button
className=
"btn navbar-button navbar-button--primary"
onClick=
{
this
.
onAddQueryClick
}
>
<
button
className=
"btn navbar-button navbar-button--primary"
onClick=
{
this
.
onAddQueryClick
}
>
Add Query
Add Query
</
button
>
</
button
>
)
}
)
}
{
isAddingMixed
&&
this
.
renderMixedPicker
()
}
{
isAddingMixed
&&
this
.
renderMixedPicker
()
}
</
div
>
</>
</>
);
);
};
};
...
...
public/sass/components/_toolbar.scss
View file @
521c8f34
...
@@ -16,6 +16,12 @@
...
@@ -16,6 +16,12 @@
padding-right
:
20px
;
padding-right
:
20px
;
}
}
.toolbar__left
{
display
:
flex
;
flex-grow
:
1
;
align-items
:
center
;
}
.toolbar__main
{
.toolbar__main
{
padding
:
0
$input-padding-x
;
padding
:
0
$input-padding-x
;
font-size
:
$font-size-md
;
font-size
:
$font-size-md
;
...
...
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