Skip to content

Commit

Permalink
refactor: reduce duplicated html AB#27277
Browse files Browse the repository at this point in the history
  • Loading branch information
gulfaraz committed May 14, 2024
1 parent f74858b commit 520a2e5
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,14 @@
>
<div class="dialogue-turn--content">
<ion-card
*ngIf="isSelected"
[style.border-color]="borderColor"
(mouseout)="onMouseOut()"
>
<ion-card-content>
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
<small><app-timestamp [timestamp]="timestamp"></app-timestamp></small>
</ion-card-content>
</ion-card>
<ion-card
*ngIf="!isSelected"
[style.border-color]="mouseOver || isSelected ? borderColor : null"
(mouseover)="onMouseOver()"
(mouseout)="onMouseOut()"
[style.border-color]="
mouseOver ? borderColor : 'var(--ion-color-fiveten-neutral-100)'
"
>
<ion-card-content>
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
<small><app-timestamp [timestamp]="timestamp"></app-timestamp></small>
</ion-card-content>
</ion-card>
<span class="dialogue-turn--speech-arrow"></span>
</div>
</div>

0 comments on commit 520a2e5

Please sign in to comment.