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
a231e57c
Unverified
Commit
a231e57c
authored
Jan 18, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jan 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14954 from grafana/minor-style-change
Panel edit mode style tweaks
parents
4c9046d6
521c8f34
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 @
a231e57c
...
...
@@ -111,14 +111,11 @@ export class EditorTabBody extends PureComponent<Props, State> {
return
(
<>
<
div
className=
"toolbar"
>
<
div
className=
"toolbar__heading"
>
{
heading
}
</
div
>
{
renderToolbar
&&
renderToolbar
()
}
{
toolbarItems
.
length
>
0
&&
(
<>
<
div
className=
"gf-form--grow"
/>
{
toolbarItems
.
map
(
item
=>
this
.
renderButton
(
item
))
}
</>
)
}
<
div
className=
"toolbar__left"
>
<
div
className=
"toolbar__heading"
>
{
heading
}
</
div
>
{
renderToolbar
&&
renderToolbar
()
}
</
div
>
{
toolbarItems
.
map
(
item
=>
this
.
renderButton
(
item
))
}
</
div
>
<
div
className=
"panel-editor__scroll"
>
<
CustomScrollbar
autoHide=
{
false
}
scrollTop=
{
scrollTop
}
setScrollTop=
{
setScrollTop
}
>
...
...
public/app/features/dashboard/panel_editor/QueriesTab.tsx
View file @
a231e57c
...
...
@@ -18,7 +18,7 @@ import config from 'app/core/config';
// Types
import
{
PanelModel
}
from
'../panel_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'
;
interface
Props
{
...
...
@@ -133,14 +133,13 @@ export class QueriesTab extends PureComponent<Props, State> {
return
(
<>
<
DataSourcePicker
datasources=
{
this
.
datasources
}
onChange=
{
this
.
onChangeDataSource
}
current=
{
currentDS
}
/>
<
div
className=
"m-l-2"
>
{
!
isAddingMixed
&&
(
<
button
className=
"btn navbar-button navbar-button--primary"
onClick=
{
this
.
onAddQueryClick
}
>
Add Query
</
button
>
)
}
{
isAddingMixed
&&
this
.
renderMixedPicker
()
}
</
div
>
<
div
className=
"flex-grow"
/>
{
!
isAddingMixed
&&
(
<
button
className=
"btn navbar-button navbar-button--primary"
onClick=
{
this
.
onAddQueryClick
}
>
Add Query
</
button
>
)
}
{
isAddingMixed
&&
this
.
renderMixedPicker
()
}
</>
);
};
...
...
public/sass/components/_toolbar.scss
View file @
a231e57c
...
...
@@ -16,6 +16,12 @@
padding-right
:
20px
;
}
.toolbar__left
{
display
:
flex
;
flex-grow
:
1
;
align-items
:
center
;
}
.toolbar__main
{
padding
:
0
$input-padding-x
;
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