Skip to content

Commit

Permalink
fix filter headers and filters on unsaved query alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsmy committed Jan 3, 2018
1 parent f687cac commit 4c055c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions client/app/assets/less/redash/redash-newstyle.less
Expand Up @@ -204,6 +204,10 @@ page-header, .page-header--new {
}
}

.filter-container {
margin-bottom: 5px;
}

// Navigation
.caret--nav {
border-top: none;
Expand Down
7 changes: 2 additions & 5 deletions client/app/components/filters.html
@@ -1,11 +1,8 @@
<div class="container bg-white p-b-15" ng-show="$ctrl.filters | notEmpty">
<div class="row">
<div class="col-sm-6 p-l-0" ng-repeat="filter in $ctrl.filters">
<div class="col-sm-6 p-l-0 filter-container" ng-repeat="filter in $ctrl.filters">
<label>{{filter.friendlyName}}</label>
</div>
</div>
<div class="row">
<div class="col-sm-6 p-l-0" 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">
<ui-select-match placeholder="Select value for {{filter.friendlyName}}...">{{$select.selected | filterValue:filter}}</ui-select-match>
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/queries/query.html
Expand Up @@ -248,7 +248,7 @@ <h3>
</div>
<div class="row">
<div class="col-lg-12">
<div ng-if="!query.visualizations.length">
<div ng-if="!query.visualizations.length" class="query__vis col-md-12 p-b-15">
<filters filters="filters"></filters>
<grid-renderer query-result="queryResult" items-per-page="50"></grid-renderer>
</div>
Expand Down

0 comments on commit 4c055c6

Please sign in to comment.