Skip to content
Snippets Groups Projects
Commit 71768c6e authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Rearrange voting buttons

parent e5d7cbea
No related merge requests found
...@@ -14,12 +14,14 @@ ...@@ -14,12 +14,14 @@
<button mat-icon-button [disabled]="isStudent" (click)="setRead(comment)" [matTooltip]="comment.read ? 'Mark as unread' : 'Mark as read'"> <button mat-icon-button [disabled]="isStudent" (click)="setRead(comment)" [matTooltip]="comment.read ? 'Mark as unread' : 'Mark as read'">
<mat-icon [ngClass]="{true: 'read-icon', false: 'unread-icon'}[comment.read]">visibility</mat-icon> <mat-icon [ngClass]="{true: 'read-icon', false: 'unread-icon'}[comment.read]">visibility</mat-icon>
</button> </button>
<button mat-icon-button [disabled]="!isStudent" (click)="voteUp(comment)"> <div fxLayout="column">
<mat-icon>keyboard_arrow_up</mat-icon> <button mat-icon-button [disabled]="!isStudent" (click)="voteUp(comment)">
</button> <mat-icon>keyboard_arrow_up</mat-icon>
<h4>{{comment.score}}</h4> </button>
<button mat-icon-button [disabled]="!isStudent" (click)="voteDown(comment)"> <h3>{{comment.score}}</h3>
<mat-icon>keyboard_arrow_down</mat-icon> <button mat-icon-button [disabled]="!isStudent" (click)="voteDown(comment)">
</button> <mat-icon>keyboard_arrow_down</mat-icon>
</button>
</div>
</div> </div>
</mat-card> </mat-card>
...@@ -38,9 +38,14 @@ mat-toolbar { ...@@ -38,9 +38,14 @@ mat-toolbar {
color: #fffde7; color: #fffde7;
} }
.proffesor-icon { .proffessor-icon {
background-size: cover; background-size: cover;
margin-right: 10px; margin-right: 10px;
margin-top: 10px; margin-top: 10px;
} }
h3 {
text-align: center;
margin: 0;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment