<div [ngStyle]="{'height':height+'rem'}" class="container">
  <div class="scorll" [ngStyle]="{'margin-top':marginTop}">
    <ng-container *ngFor="let item of itemsArray">
      <p [ngStyle]="{'height':height+'rem','line-height':height+'rem'}" class="singleItem" (click)="clickSingleItem(item)">
        <span class="titleStyle">{{item?.type}}</span>
        <span class="messageStyle">{{item?.message}}</span>
      </p>
    </ng-container>
  </div>
</div>