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
2ee22668
Commit
2ee22668
authored
Jan 20, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4, also improves responsive layout for mobiles
parent
0c1df425
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
src/app/panels/graphite/module.js
+3
-2
src/app/partials/dashboard.html
+1
-1
src/css/bootstrap-responsive.min.css
+0
-0
src/vendor/bootstrap/less/grafana-responsive.less
+14
-0
No files found.
src/app/panels/graphite/module.js
View file @
2ee22668
...
...
@@ -531,8 +531,9 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
return
;
}
// IE doesn't work without this
elem
.
css
({
height
:
scope
.
height
||
scope
.
row
.
height
});
try
{
elem
.
css
({
height
:
scope
.
panel
.
height
||
scope
.
row
.
height
});
}
catch
(
e
)
{
return
;
}
_
.
each
(
data
,
function
(
series
)
{
series
.
label
=
series
.
info
.
alias
;
...
...
src/app/partials/dashboard.html
View file @
2ee22668
...
...
@@ -56,7 +56,7 @@
<div
ng-show=
"rowSpan(row) < 10 && dashboard.panelDragging"
class=
"panel"
style=
"margin:5px;width:30%;background:rgba(100,100,100,0.50)"
ng-class=
"{'dragInProgress':dashboard.panelDragging}"
ng-style=
"{height:row.height}"
data-drop=
"true"
ng-model=
"row.panels"
data-jqyoui-options
jqyoui-droppable=
"{index:row.panels.length,mutate:false,onDrop:'panelMoveDrop',onOver:'panelMoveOver',onOut:'panelMoveOut'}"
>
</div>
<span
bs-modal=
"'app/partials/roweditor.html'"
ng-show=
"
row.editable && !dashboard.panelDragging
"
>
<span
bs-modal=
"'app/partials/roweditor.html'"
ng-show=
"
!dashboard.panelDragging && !dashboard.current.hideControls
"
>
<i
ng-hide=
"rowSpan(row) >= 10"
class=
"pointer icon-plus-sign"
ng-click=
"editor.index = 2"
bs-tooltip=
"'Add a panel to this row'"
data-placement=
"right"
></i>
</span>
...
...
src/css/bootstrap-responsive.min.css
View file @
2ee22668
This diff is collapsed.
Click to expand it.
src/vendor/bootstrap/less/grafana-responsive.less
View file @
2ee22668
...
...
@@ -21,3 +21,16 @@
// 768px-979px
@fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
// Media queries
// ---------------------
@media (max-width: 767px) {
div.panel {
width: 100% !important;
padding: 0px !important;
}
body {
padding: 0;
}
}
\ No newline at end of file
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