From 7f2cc7de7a9ec213998afba2a5d45636a95f9cf9 Mon Sep 17 00:00:00 2001 From: Anris Ceta <anris.ceta@mni.thm.de> Date: Thu, 21 Mar 2019 15:42:10 +0100 Subject: [PATCH] add lecturer icon --- src/app/components/shared/comment/comment.component.html | 2 +- src/app/components/shared/comment/comment.component.scss | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 24d2769d4..e5f7b77cf 100644 --- a/src/app/components/shared/comment/comment.component.html +++ b/src/app/components/shared/comment/comment.component.html @@ -1,6 +1,6 @@ <mat-card class="card-container"> <div fxLayout="row" fxLayoutAlign="center center"> - <div *ngIf="comment.createdFromLecturer !== false" mat-card-avatar class="proffesor-icon" matTooltip="created from lecturer"></div> + <div *ngIf="comment.createdFromLecturer !== false" mat-card-avatar class="proffesor-icon" matTooltip="created from lecturer"><mat-icon>record_voice_over</mat-icon></div> <mat-card-content> <p>{{comment.body}}</p> </mat-card-content> diff --git a/src/app/components/shared/comment/comment.component.scss b/src/app/components/shared/comment/comment.component.scss index fc4db2590..ac4d7beca 100644 --- a/src/app/components/shared/comment/comment.component.scss +++ b/src/app/components/shared/comment/comment.component.scss @@ -4,7 +4,7 @@ mat-card { cursor: pointer; } -mat-card-content>:first-child { +mat-card-content > :first-child { margin-top: 20px; } @@ -31,9 +31,8 @@ mat-icon { } .proffesor-icon { - background-image: url("https://image.flaticon.com/icons/svg/158/158279.svg"); background-size: cover; margin-right: 10px; - border: 2px solid darkslategray; + margin-top: 10px; } -- GitLab