[ADF-4017] Fix several styling bugs (#4268)

This commit is contained in:
davidcanonieto
2019-02-05 12:49:54 +00:00
committed by Eugenio Romano
parent b35a7a21a8
commit 4703bbba2f
5 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
[class.adf-data-table-card]="display === 'gallery'"
[class.adf-data-table]="display === 'list'"
[class.adf-data-table--empty]="!isHeaderVisible()">
<div *ngIf="isHeaderVisible()" class="adf-datatable-header" role="rowgroup">
<div *ngIf="showHeader && isHeaderVisible()" class="adf-datatable-header" role="rowgroup">
<div class="adf-datatable-row" *ngIf="display === 'list'" role="row">
<!-- Actions (left) -->
<div *ngIf="actions && actionsPosition === 'left'" class="adf-actions-column adf-datatable-table-cell-header">

View File

@@ -497,6 +497,7 @@
@include flex-column;
justify-content: center;
align-items: center;
height: inherit;
.adf-datatable-body {
.adf-datatable-row {

View File

@@ -641,7 +641,7 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck,
}
isHeaderVisible() {
return this.showHeader && !this.loading && !this.isEmpty() && !this.noPermission;
return !this.loading && !this.isEmpty() && !this.noPermission;
}
private emitRowSelectionEvent(name: string, row: DataRow) {