[ADF-4372] Fix json type Data Column styles (#4576)

This commit is contained in:
davidcanonieto 2019-04-09 12:18:36 +01:00 committed by Eugenio Romano
parent deff3965b0
commit 62c71dbec9
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
.adf-datatable-json-cell {
white-space: pre-wrap;
word-wrap: break-word;
}

View File

@ -24,10 +24,11 @@ import { DataTableCellComponent } from './datatable-cell.component';
template: `
<ng-container>
<span class="adf-datatable-cell-value">
<pre>{{ value$ | async | json }}</pre>
<pre class="adf-datatable-json-cell">{{ value$ | async | json }}</pre>
</span>
</ng-container>
`,
styleUrls: ['./json-cell.component.scss'],
encapsulation: ViewEncapsulation.None,
host: { class: 'adf-datatable-cell' }
})