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
a2a4325b
Commit
a2a4325b
authored
Aug 09, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-newgrid' of github.com:grafana/grafana into develop-newgrid
parents
77b42220
95f67ed7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
public/app/features/dashboard/model.ts
+7
-2
public/dashboards/home.json
+1
-1
public/sass/components/_gridstack.scss
+0
-1
public/sass/pages/_dashboard.scss
+0
-4
No files found.
public/app/features/dashboard/model.ts
View file @
a2a4325b
...
@@ -656,14 +656,19 @@ export class DashboardModel {
...
@@ -656,14 +656,19 @@ export class DashboardModel {
height
=
Math
.
ceil
(
height
/
CELL_HEIGHT
);
height
=
Math
.
ceil
(
height
/
CELL_HEIGHT
);
for
(
let
panel
of
row
.
panels
)
{
for
(
let
panel
of
row
.
panels
)
{
// should wrap to next row?
if
(
xPos
+
panel
.
span
>=
12
)
{
yPos
+=
height
;
}
panel
.
x
=
xPos
;
panel
.
x
=
xPos
;
panel
.
y
=
yPos
;
panel
.
y
=
yPos
;
panel
.
width
=
panel
.
span
;
panel
.
width
=
panel
.
span
;
panel
.
height
=
height
;
panel
.
height
=
height
;
xPos
+=
panel
.
width
;
this
.
panels
.
push
(
panel
);
this
.
panels
.
push
(
panel
);
xPos
+=
panel
.
width
;
}
}
yPos
+=
height
;
yPos
+=
height
;
...
...
public/dashboards/home.json
View file @
a2a4325b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"title"
:
"Home Dashboard"
,
"title"
:
"Home Dashboard"
,
"collapse"
:
false
,
"collapse"
:
false
,
"editable"
:
true
,
"editable"
:
true
,
"height"
:
"25px"
,
"height"
:
150
,
"panels"
:
[
"panels"
:
[
{
{
"content"
:
"<div class=
\"
text-center dashboard-header
\"
>
\n
<span>Home Dashboard</span>
\n
</div>"
,
"content"
:
"<div class=
\"
text-center dashboard-header
\"
>
\n
<span>Home Dashboard</span>
\n
</div>"
,
...
...
public/sass/components/_gridstack.scss
View file @
a2a4325b
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
right
:
5px
;
right
:
5px
;
bottom
:
0
;
bottom
:
0
;
width
:
auto
;
width
:
auto
;
z-index
:
0
!
important
;
text-align
:
center
;
text-align
:
center
;
}
}
...
...
public/sass/pages/_dashboard.scss
View file @
a2a4325b
...
@@ -33,10 +33,6 @@ div.flot-text {
...
@@ -33,10 +33,6 @@ div.flot-text {
}
}
}
}
.panel-margin
{
margin
:
0
0
.4rem
0
.8rem
0
.4rem
;
}
.panel-container
{
.panel-container
{
background-color
:
$panel-bg
;
background-color
:
$panel-bg
;
position
:
relative
;
position
:
relative
;
...
...
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