Skip to content
Snippets Groups Projects
Commit 47b96e43 authored by ncastejon's avatar ncastejon
Browse files

Fix grid layout for the dataset table when only one column.

parent 8f98aede
No related branches found
No related tags found
1 merge request!48Version 2.3.0
import { Component, OnInit, ElementRef, QueryList, ViewChildren,
OnDestroy, Input, Output, EventEmitter } from '@angular/core';
import {
Component, OnInit, ElementRef, QueryList, ViewChildren,
OnDestroy, Input, Output, EventEmitter
} from '@angular/core';
import { DatasetDetailService } from '../../../services';
import { Data } from '../../../models';
import { Subscription } from '../../../../../../node_modules/rxjs';
......@@ -69,9 +71,11 @@ export class DatasetTableComponent implements OnInit, OnDestroy {
}
getStyle() {
const gridColumns = this.selectedProperties.length !== 1 ?
`repeat(${this.selectedProperties.length - 1}, max-content) 1fr` : '1fr';
return {
// 'grid-template-columns': `repeat(${this.selectedProperties.length}, minmax(50px, 1fr)`,
'grid-template-columns': `repeat(${this.selectedProperties.length - 1}, max-content) 1fr`,
'grid-template-columns': gridColumns,
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment