All files / element-ng/empty-state si-empty-state.component.html

100% Statements 21/21
50% Branches 2/4
100% Functions 0/0
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2238x 38x 38x 38x 38x   38x 38x 36x 38x 36x   38x   38x     36x 36x 36x    
@let iconValue = icon();
@let contentValue = content();
<div class="empty-state-container" [class.auto-responsive]="responsiveMode()">
  @if (iconValue) {
    <si-icon class="state-icon text-secondary" [icon]="iconValue" />
  }
  <span class="state-heading text-center" [class.text-truncate]="responsiveMode()">
    {{ heading() | translate }}
  </span>
  @if (contentValue) {
    <p
      class="state-content text-center text-secondary"
      [class.text-pre-wrap]="!responsiveMode()"
      [class.text-truncate]="responsiveMode()"
      >{{ contentValue | translate }}</p
    >
  }
  <span class="state-actions">
    <ng-content />
  </span>
</div>