Skip to content

Commit

Permalink
Improve multi-line text
Browse files Browse the repository at this point in the history
  • Loading branch information
fttx committed Oct 3, 2021
1 parent 86ceba1 commit abe1a65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/scan-session/scan-session.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
<button ion-item *virtualItem="let scan; let i = index" (click)="onItemClicked(scan, i)" (press)="onItemPressed(scan, i)" [color]="scan.repeated ? 'light' : 'default'">
<ion-grid no-padding>
<ion-row>
<ion-col align-self-start col-1>
<ion-col align-self-start col-1 class="status-icon">
<ion-icon [name]="scan.ack ? 'checkmark-circle' : 'alert'" [style.color]="scan.ack ? 'green' : 'red'"></ion-icon>
</ion-col>
<ion-col>
<ion-col text-wrap>
{{ scan.displayValue }}
</ion-col>
</ion-row>
Expand Down
11 changes: 11 additions & 0 deletions src/pages/scan-session/scan-session.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ page-scan-session {
height: 26px;
opacity: .7;
}

ion-row {
align-items: center !important;
}

.status-icon {
align-self: unset !important;
margin: 0 !important;
font-size: 2rem !important;
line-height: 2rem !important;
}
}

0 comments on commit abe1a65

Please sign in to comment.