Improve responsive view

pull/58/head
HardiReady 2019-02-27 22:53:24 +01:00
parent 9dc21dd6c7
commit 0fa09b56dc
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@
.slide-chart-container {
width: 100%;
min-width: unset;
padding-top: 105px;
margin-top: 105px;
margin-bottom: 35px;
}
.chart-select-group {

View File

@ -49,7 +49,7 @@ export class ScoreboardComponent implements OnChanges {
}
ngOnChanges(changes: SimpleChanges) {
if (changes['isSmallLayout'] && changes['isSmallLayout'].previousValue != changes['isSmallLayout'].currentValue) {
if (changes['isSmallLayout'] && changes['isSmallLayout'].previousValue !== changes['isSmallLayout'].currentValue) {
const colIdxFraction = this.displayedColumns.findIndex(c => c === 'fraction');
if (this.isSmallLayout) {
this.displayedColumns.splice(colIdxFraction, 1);