Skip to content

Commit

Permalink
Made the grid go all the way to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena committed Apr 14, 2019
1 parent d4cc9d7 commit cbbadb5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
10 changes: 10 additions & 0 deletions client/app/assets/less/inc/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ body {
}
}

app-view {
min-height: 100vh;
}

app-view, #app-content {
display: flex;
flex-direction: column;
flex-grow: 1;
}

strong {
font-weight: 500;
}
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/app-view/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ <h4>{{ $ctrl.handler.error.message }}</h4>
</div>
</div>
</div>
<div ng-if="!$ctrl.handler.error" ng-view></div>
<div id="app-content" ng-if="!$ctrl.handler.error" ng-view></div>
2 changes: 1 addition & 1 deletion client/app/pages/dashboards/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3>
<filters filters="$ctrl.filters" on-change="$ctrl.filtersOnChange(filter, $modal)"></filters>
</div>

<div style="padding-bottom: 5px;" ng-if="$ctrl.dashboard.widgets.length > 0" id="dashboard-container" ng-class="{'preview-mode': !$ctrl.layoutEditing, 'editing-mode': $ctrl.layoutEditing, 'grid-enabled': !$ctrl.isGridDisabled}">
<div ng-if="$ctrl.dashboard.widgets.length > 0" id="dashboard-container" ng-class="{'preview-mode': !$ctrl.layoutEditing, 'editing-mode': $ctrl.layoutEditing, 'grid-enabled': !$ctrl.isGridDisabled}">
<div gridstack editing="$ctrl.layoutEditing && !$ctrl.saveInProgress" batch-update="$ctrl.updateGridItems"
is-one-column-mode="$ctrl.isGridDisabled" class="dashboard-wrapper">
<div class="dashboard-widget-wrapper"
Expand Down
13 changes: 12 additions & 1 deletion client/app/pages/dashboards/dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,20 @@
/****
grid bg - based on 6 cols, 35px rows and 15px spacing
****/

// let the bg go all the way to the bottom
dashboard-page, dashboard-page .container {
display: flex;
flex-grow: 1;
flex-direction: column;
width: 100%;
}

#dashboard-container {
position: relative;

flex-grow: 1;
margin-bottom: 50px; // but not ALL the way ಠ_ಠ

&.editing-mode.grid-enabled {
/* Y axis lines */
background: linear-gradient(to right, transparent, transparent 1px, #F6F8F9 1px, #F6F8F9), linear-gradient(to bottom, #B3BABF, #B3BABF 1px, transparent 1px, transparent);
Expand Down

0 comments on commit cbbadb5

Please sign in to comment.