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
e215ba82
Commit
e215ba82
authored
Oct 28, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): edit mode polish
parent
f1a44ad0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
11 deletions
+30
-11
public/app/features/dashboard/row/add_panel.html
+2
-3
public/app/features/dashboard/row/add_panel.ts
+8
-2
public/app/features/dashboard/row/options.html
+3
-3
public/sass/pages/_dashboard.scss
+17
-3
No files found.
public/app/features/dashboard/row/add_panel.html
View file @
e215ba82
<div
class=
"dash-row-add-panel"
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form-inline
dash-row-add-panel-form
"
>
<div
class=
"gf-form"
>
<!-- <span class="gf-form-label">Panel search</span> -->
<input
type=
"text"
class=
"gf-form-input max-width-14"
ng-model=
'ctrl.panelSearch'
give-focus=
'true'
ng-keydown=
"ctrl.keyDown($event)"
ng-change=
"ctrl.panelSearchChanged()"
placeholder=
"panel search filter"
></input>
<input
type=
"text"
class=
"gf-form-input max-width-14"
ng-model=
'ctrl.panelSearch'
give-focus=
'true'
ng-keydown=
"ctrl.keyDown($event)"
ng-change=
"ctrl.panelSearchChanged()"
placeholder=
"panel search filter"
ng-blur=
"ctrl.panelSearchBlur()"
></input>
</div>
</div>
...
...
public/app/features/dashboard/row/add_panel.ts
View file @
e215ba82
...
...
@@ -27,7 +27,7 @@ export class AddPanelCtrl {
keyDown
(
evt
)
{
if
(
evt
.
keyCode
===
27
)
{
this
.
rowCtrl
.
showOptions
=
false
;
this
.
rowCtrl
.
dropView
=
0
;
return
;
}
...
...
@@ -47,6 +47,12 @@ export class AddPanelCtrl {
}
}
panelSearchBlur
()
{
this
.
$timeout
(()
=>
{
this
.
rowCtrl
.
dropView
=
0
;
},
400
);
}
moveSelection
(
direction
)
{
var
max
=
this
.
panelHits
.
length
;
var
newIndex
=
this
.
activeIndex
+
direction
;
...
...
@@ -90,7 +96,7 @@ export class AddPanelCtrl {
this
.
rowCtrl
.
dropView
=
0
;
this
.
dashboard
.
addPanel
(
panel
,
this
.
row
);
this
.
$timeout
(()
=>
{
this
.
$rootScope
.
broadcast
(
'render'
);
this
.
$rootScope
.
$
broadcast
(
'render'
);
//this.$rootScope.appEvent('panel-change-view', {
// fullscreen: true, edit: true, panelId: panel.id
//});
...
...
public/app/features/dashboard/row/options.html
View file @
e215ba82
<div
class=
"dash-row-options"
>
<div
class=
"gf-form-group section"
>
<
h5
class=
"section-heading"
>
Options
</h5
>
<
!-- <h5 class="section-heading">Options</h5> --
>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-6"
>
Title
</span>
<span
class=
"gf-form-label width-6"
>
Row
Title
</span>
<input
type=
"text"
class=
"gf-form-input max-width-14"
ng-model=
'ctrl.row.title'
></input>
</div>
<div
class=
"gf-form"
>
...
...
@@ -24,7 +24,7 @@
</div>
<div
class=
"gf-form-group section"
>
<
h5
class=
"section-heading"
>
Row Templating
</h5
>
<
!-- <h5 class="section-heading">Row Templating</h5> --
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label"
>
Repeat Row
</span>
...
...
public/sass/pages/_dashboard.scss
View file @
e215ba82
...
...
@@ -216,13 +216,20 @@ div.flot-text {
flex-direction
:
row
;
margin-right
:
$panel-margin
;
margin-left
:
0
;
border-bottom
:
1px
solid
$dark-4
;
//
border-bottom: 1px solid $dark-4;
&
:hover
{
.dash-row-header-actions
{
display
:
block
;
}
}
.h1
{
font-size
:
$font-size-h1
;
}
.h2
{
font-size
:
$font-size-h2
;
}
.h3
{
font-size
:
$font-size-h3
;
}
.h4
{
font-size
:
$font-size-h4
;
}
.h5
{
font-size
:
$font-size-h5
;
}
.h6
{
font-size
:
$font-size-h6
;
}
}
.dash-row-header-title
{
...
...
@@ -280,7 +287,6 @@ div.flot-text {
.dash-row
{
}
.panels-wrapper
{
padding
:
$panel-margin
*
2
0
0
$panel-margin
;
}
}
...
...
@@ -302,7 +308,8 @@ div.flot-text {
.dash-row-options
{
background
:
$panel-bg
;
margin
:
0
0
$panel-margin
0
;
border
:
$panel-border
;
margin
:
0
0
$panel-margin
*
2
$panel-margin
;
padding
:
$spacer
*
1
.5
;
}
...
...
@@ -311,6 +318,13 @@ div.flot-text {
padding
:
$panel-margin
;
display
:
flex
;
align-items
:
flex-start
;
position
:
relative
;
}
.dash-row-add-panel-form
{
position
:
absolute
;
width
:
200px
;
top
:
-34px
;
}
.add-panel-panels-scroll
{
...
...
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