move favorite star in front of title

This commit is contained in:
Maximilian Krambach 2019-02-11 16:01:32 +01:00 committed by Emanuel Schütze
parent 96a63ecd77
commit 7725005770
2 changed files with 14 additions and 10 deletions

View File

@ -46,7 +46,9 @@
<ng-container matColumnDef="identifier"> <ng-container matColumnDef="identifier">
<mat-header-cell *matHeaderCellDef mat-sort-header>Identifier</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Identifier</mat-header-cell>
<mat-cell *matCellDef="let motion"> <mat-cell *matCellDef="let motion">
<div class="innerTable">{{ motion.identifier }}</div> <div class="innerTable">
{{ motion.identifier }}
</div>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
@ -57,6 +59,10 @@
<div class="innerTable max-width"> <div class="innerTable max-width">
<!-- title line --> <!-- title line -->
<div class="motion-list"> <div class="motion-list">
<!-- favorite icon -->
<span *ngIf="motion.star" class="favorite-star">
<mat-icon inline>star</mat-icon>
</span>
<!-- attachment icon --> <!-- attachment icon -->
<span class="attached-files" *ngIf="motion.hasAttachments()"> <span class="attached-files" *ngIf="motion.hasAttachments()">
<mat-icon>attach_file</mat-icon> <mat-icon>attach_file</mat-icon>
@ -65,10 +71,6 @@
<span class="motion-list-title"> <span class="motion-list-title">
{{ motion.title }} {{ motion.title }}
</span> </span>
<!-- favorite icon -->
<span *ngIf="motion.star" class="favorite-star">
<mat-icon inline>star</mat-icon>
</span>
</div> </div>
<!-- submitters line --> <!-- submitters line -->
<div class="motion-list"> <div class="motion-list">
@ -92,7 +94,9 @@
<!-- recommendation --> <!-- recommendation -->
<span *ngIf="motion.recommendation && motion.state.next_states_id.length > 0"> <span *ngIf="motion.recommendation && motion.state.next_states_id.length > 0">
<mat-basic-chip class="bluegrey" [disabled]="true">{{ getRecommendationLabel(motion) }} </mat-basic-chip> <mat-basic-chip class="bluegrey" [disabled]="true">
{{ getRecommendationLabel(motion) }}
</mat-basic-chip>
</span> </span>
</div> </div>
</mat-cell> </mat-cell>

View File

@ -38,7 +38,7 @@
font-size: 16px; font-size: 16px;
} }
.favorite-star { .favorite-star {
width: 26px; padding-right: 3px;
} }
} }