diff --git a/src/commons/component/host-detail.component.html b/src/commons/component/host-detail.component.html index 8d62a9d..01f6893 100644 --- a/src/commons/component/host-detail.component.html +++ b/src/commons/component/host-detail.component.html @@ -18,8 +18,8 @@

{{host.name}} {{host.address}}

- - + +
    @@ -70,11 +70,15 @@ -
      -
    • - {{port.portNumber}} ({{port.metaPortType.key}}) -
    • -
    +
    + +
      +
    • + {{port.portNumber}} ({{port.metaPortType.key}}) +
    • +
    +
    +
    diff --git a/src/commons/component/host-detail.component.ts b/src/commons/component/host-detail.component.ts index f848842..b126b56 100644 --- a/src/commons/component/host-detail.component.ts +++ b/src/commons/component/host-detail.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; +import { Component, Input, OnChanges, SimpleChanges, ViewChild } from '@angular/core'; import { of } from 'rxjs'; import { map, catchError, take } from 'rxjs/operators'; @@ -7,6 +7,7 @@ import { Host } from '@overflow/model/discovery'; import { PingResult } from '@overflow/model/ping'; import { ProbeService } from '../service/probe.service'; +import { AutoHeightDirective } from '@overflow/commons/ui/directive/auto-height.directive'; @Component({ @@ -16,6 +17,8 @@ import { ProbeService } from '../service/probe.service'; }) export class HostDetailComponent implements OnChanges { @Input() host: Host; + @ViewChild(AutoHeightDirective) autoHeightDirective; + pingWaiting: boolean; @@ -26,6 +29,7 @@ export class HostDetailComponent implements OnChanges { pingResult: PingResult; pingResultRaw: string; + constructor( private probeService: ProbeService, ) { @@ -70,4 +74,8 @@ export class HostDetailComponent implements OnChanges { .subscribe(); } + onTabViewChange($event) { + this.autoHeightDirective.forceCalculate(); + } + } diff --git a/src/commons/component/service-detail.component.html b/src/commons/component/service-detail.component.html index 36b9dbe..9664cfd 100644 --- a/src/commons/component/service-detail.component.html +++ b/src/commons/component/service-detail.component.html @@ -21,7 +21,7 @@ - +
      @@ -46,18 +46,22 @@ -