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
0bf055e3
Commit
0bf055e3
authored
Jan 03, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
big improvement to fullscreen edit/view mode
parent
aa8c8814
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
14 deletions
+21
-14
src/app/panels/graphite/module.html
+1
-1
src/app/panels/graphite/module.js
+7
-5
src/app/partials/dashboard.html
+0
-2
src/css/bootstrap.dark.min.css
+0
-0
src/index.html
+1
-1
src/vendor/bootstrap/less/grafana.less
+12
-5
No files found.
src/app/panels/graphite/module.html
View file @
0bf055e3
<div
ng-controller=
'graphite'
ng-init=
"init()"
style=
"min-height:{{panel.height || row.height}}"
ng-class=
'{"panel-fullscreen":
showF
ullscreen}'
>
ng-class=
'{"panel-fullscreen":
f
ullscreen}'
>
<style>
.histogram-legend
{
...
...
src/app/panels/graphite/module.js
View file @
0bf055e3
...
...
@@ -240,7 +240,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
};
$scope
.
remove_panel_from_row
=
function
(
row
,
panel
)
{
if
(
$scope
.
showF
ullscreen
)
{
if
(
$scope
.
f
ullscreen
)
{
$rootScope
.
$emit
(
'panel-fullscreen-exit'
);
}
else
{
...
...
@@ -385,7 +385,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
var
closeEditMode
=
$rootScope
.
$on
(
'panel-fullscreen-exit'
,
function
()
{
$scope
.
inEditMode
=
false
;
$scope
.
showF
ullscreen
=
false
;
$scope
.
f
ullscreen
=
false
;
$scope
.
row
.
height
=
oldHeight
;
closeEditMode
();
...
...
@@ -395,8 +395,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
});
});
$
(
window
).
scrollTop
(
0
);
$scope
.
inEditMode
=
options
.
edit
;
$scope
.
showF
ullscreen
=
true
;
$scope
.
f
ullscreen
=
true
;
$rootScope
.
$emit
(
'panel-fullscreen-enter'
);
$timeout
(
function
()
{
...
...
@@ -405,7 +407,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
};
$scope
.
openConfigureModal
=
function
()
{
if
(
$scope
.
showF
ullscreen
)
{
if
(
$scope
.
f
ullscreen
)
{
$rootScope
.
$emit
(
'panel-fullscreen-exit'
);
return
;
}
...
...
@@ -457,7 +459,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
};
$scope
.
toggleFullscreen
=
function
(
evt
)
{
if
(
$scope
.
showF
ullscreen
)
{
if
(
$scope
.
f
ullscreen
)
{
$rootScope
.
$emit
(
'panel-fullscreen-exit'
);
return
;
}
...
...
src/app/partials/dashboard.html
View file @
0bf055e3
...
...
@@ -12,8 +12,6 @@
<div
class=
"container-fluid main"
ng-class=
"{'grafana-dashboard-hide-controls': dashboard.current.hideControls}"
>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid container"
style=
"margin-top:10px; width:98%"
>
<div
ng-show=
"fullscreenPanelExists"
class=
"modal-backdrop fade in"
></div>
<!-- Rows -->
<div
class=
"row-fluid kibana-row"
ng-controller=
"RowCtrl"
ng-repeat=
"(row_name, row) in dashboard.current.rows"
ng-style=
"row_style(row)"
>
<div
class=
"row-control"
>
...
...
src/css/bootstrap.dark.min.css
View file @
0bf055e3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/index.html
View file @
0bf055e3
...
...
@@ -41,7 +41,7 @@
</div>
</div>
<div
ng-view
></div>
<div
ng-view
ng-class=
"{'dashboard-fullscreen': fullscreenPanelExists}"
></div>
</body>
</html>
src/vendor/bootstrap/less/grafana.less
View file @
0bf055e3
...
...
@@ -122,18 +122,25 @@
.panel-fullscreen {
z-index: 1500;
display: block;
display: block
important
;
position: fixed;
left:
2
0px;
right:
2
0px;
top:
25
px;
bottom:
25
px;
left: 0px;
right: 0px;
top:
49
px;
bottom:
0
px;
outline: 1px solid #101214;
border-top: 1px solid #3e444c;
padding: 0 10px;
background: @kibanaPanelBackground;
}
.dashboard-fullscreen .container-fluid.main {
height: 0px;
width: 0px;
position: fixed;
right: -10000px;
}
.grafana-legend-container {
margin: 4px 15px;
text-align: left;
...
...
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