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
e375159e
Commit
e375159e
authored
Oct 17, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grid: row work
parent
d8230f8f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
public/app/core/constants.ts
+1
-1
public/app/features/dashboard/dashgrid/DashboardRow.tsx
+2
-1
public/app/features/dashboard/panel_model.ts
+1
-0
public/sass/components/_row.scss
+6
-3
No files found.
public/app/core/constants.ts
View file @
e375159e
export
const
GRID_CELL_HEIGHT
=
2
0
;
export
const
GRID_CELL_HEIGHT
=
3
0
;
export
const
GRID_CELL_VMARGIN
=
10
;
export
const
GRID_COLUMN_COUNT
=
24
;
export
const
REPEAT_DIR_VERTICAL
=
'v'
;
...
...
public/app/features/dashboard/dashgrid/DashboardRow.tsx
View file @
e375159e
...
...
@@ -36,19 +36,20 @@ export class DashboardRow extends React.Component<DashboardRowProps, any> {
render
()
{
const
classes
=
classNames
({
'dashboard-row'
:
true
,
'dashboard-row--collapse'
:
this
.
state
.
collapse
});
const
chevronClass
=
classNames
({
'fa'
:
true
,
'fa-chevron-down'
:
!
this
.
state
.
collapse
,
'fa-chevron-right'
:
this
.
state
.
collapse
});
const
hiddenPanels
=
this
.
props
.
panel
.
panels
?
this
.
props
.
panel
.
panels
.
length
:
0
;
return
(
<
div
className=
{
classes
}
>
<
a
className=
"dashboard-row__title pointer"
onClick=
{
this
.
toggle
}
>
<
i
className=
{
chevronClass
}
/>
{
this
.
props
.
panel
.
title
}
<
span
className=
"dashboard-row__panel_count"
>
(
{
hiddenPanels
}
hidden panels)
</
span
>
</
a
>
<
div
className=
"dashboard-row__actions"
>
<
a
className=
"pointer"
onClick=
{
this
.
openSettings
}
>
<
i
className=
"fa fa-cog"
/>
</
a
>
</
div
>
<
div
className=
"dashboard-row__panel_count"
>
(0 hidden panels)
</
div
>
<
div
className=
"dashboard-row__drag grid-drag-handle"
/>
</
div
>
);
...
...
public/app/features/dashboard/panel_model.ts
View file @
e375159e
...
...
@@ -28,6 +28,7 @@ export class PanelModel {
repeatDirection
?:
string
;
minSpan
?:
number
;
collapse
?:
boolean
;
panels
?:
any
;
// non persisted
fullscreen
:
boolean
;
...
...
public/sass/components/_row.scss
View file @
e375159e
.dashboard-row
{
display
:
flex
;
align-items
:
center
;
height
:
100%
;
&
--collapse
{
background
:
$panel-bg
;
.dashboard-row__panel_count
{
display
:
block
;
display
:
inline-
block
;
}
.dashboard-row__drag
,
...
...
@@ -33,8 +35,8 @@
.fa
{
color
:
$text-muted
;
font-size
:
$font-size-
sm
;
padding
-right
:
0
.5rem
;
font-size
:
$font-size-
xs
;
padding
:
0
0
.5rem
;
}
}
...
...
@@ -55,6 +57,7 @@
}
.dashboard-row__panel_count
{
padding-left
:
$spacer
;
color
:
$text-color-weak
;
font-style
:
italic
;
font-size
:
$font-size-sm
;
...
...
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