From fcfb7c955b7e238f4bef1ae50ed75c991406a415 Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Fri, 4 Feb 2022 10:27:28 +0100 Subject: [PATCH] [player] Clean up code --- projects/player/src/app/components/layout/layout.component.html | 2 +- .../player/src/app/directives/hide-first-child.directive.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/player/src/app/components/layout/layout.component.html b/projects/player/src/app/components/layout/layout.component.html index 739f8e249..a03b5ac43 100644 --- a/projects/player/src/app/components/layout/layout.component.html +++ b/projects/player/src/app/components/layout/layout.component.html @@ -78,7 +78,7 @@ (selectedIndexChange)="onSelectedIndexChange($event)"> <ng-container *ngFor="let page of scrollPages; let i = index; let last = last"> <mat-tab [label]="'pageIndication' | translate: {index: i + 1}"> - <div [style.min-height]="'calc(100vh - ' + ((page.margin * 2 + tabHeaderHeight)) + 'px)'" + <div [style.min-height]="'calc(100vh - ' + ((page.margin * 2) + tabHeaderHeight) + 'px)'" [style.background-color]="page.backgroundColor" [style.padding.px]="page.margin" [style.max-width]="page.hasMaxWidth ? page.maxWidth + 'px' : '100%'"> diff --git a/projects/player/src/app/directives/hide-first-child.directive.ts b/projects/player/src/app/directives/hide-first-child.directive.ts index 2c2b5dc56..d80025275 100644 --- a/projects/player/src/app/directives/hide-first-child.directive.ts +++ b/projects/player/src/app/directives/hide-first-child.directive.ts @@ -40,7 +40,7 @@ export class HideFirstChildDirective implements OnInit, AfterViewInit, OnDestroy } } - private emitHeight() { + private emitHeight(): void { this.childHeight.emit(this.elementRef.nativeElement.firstChild.offsetHeight); } -- GitLab