Skip to content

Commit

Permalink
/issues/2103 Fix: unnecessary horizontal scroll; fix: viz overlaps fi…
Browse files Browse the repository at this point in the history
…lters panel
  • Loading branch information
kravets-levko committed Nov 28, 2017
1 parent 01cf6de commit 0d1ad21
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/app/components/filters.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="container bg-white p-5" ng-show="$ctrl.filters | notEmpty">
<div class="row">
<div class="container bg-white" ng-show="$ctrl.filters | notEmpty" style="padding: 5px;">
<div class="row" style="margin-left: -5px; margin-right: -5px;">
<div class="col-sm-6 m-t-5" ng-repeat="filter in $ctrl.filters">
<label>{{filter.friendlyName}}</label>
</div>
</div>
<div class="row">
<div class="row" style="margin-left: -5px; margin-right: -5px;">
<div class="col-sm-6 m-t-5" ng-repeat="filter in $ctrl.filters">
<ui-select ng-model="filter.current" ng-if="!filter.multiple" on-select="$ctrl.filterChangeListener(filter, $model)" on-remove="$ctrl.filterChangeListener(filter, $model)"
remove-selected="false">
Expand All @@ -31,4 +31,4 @@
</ui-select>
</div>
</div>
</div>
</div>
20 changes: 20 additions & 0 deletions client/app/pages/dashboards/dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@
}

.gridster-item:not(.gridster-auto-height-enabled) {
visualization-renderer {
display: flex;
flex-direction: column;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;

> filters {
flex-grow: 0;
}

> div {
flex-grow: 1;
position: relative;
}
}

.dynamic-table-container,
.sunburst-visualization-container,
.sankey-visualization-container,
.map-visualization-container,
Expand Down

0 comments on commit 0d1ad21

Please sign in to comment.