From e28805e55d05179adef4b6ae4252121276a93115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Fri, 1 Mar 2019 14:45:55 +0100 Subject: [PATCH] Add button to statistic view which shows the correct answer/s --- .../shared/statistic/statistic.component.html | 9 ++++++--- .../shared/statistic/statistic.component.scss | 10 ++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/app/components/shared/statistic/statistic.component.html b/src/app/components/shared/statistic/statistic.component.html index 2f34c95be..04b2032b9 100644 --- a/src/app/components/shared/statistic/statistic.component.html +++ b/src/app/components/shared/statistic/statistic.component.html @@ -1,9 +1,12 @@ <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill> <div fxLayout="row" fxLayoutAlign="center"> <mat-card> - <mat-card-header> - <h3>{{subject}}</h3> - </mat-card-header> + <div fxLayout="row" fxLayoutAlign="center"> + <mat-card-title> + <h4>{{subject}}</h4> + </mat-card-title> + <button mat-raised-button>Show Correct</button> + </div> <mat-divider></mat-divider> <mat-toolbar></mat-toolbar> <div> diff --git a/src/app/components/shared/statistic/statistic.component.scss b/src/app/components/shared/statistic/statistic.component.scss index ddfd27aad..e2acd18b8 100644 --- a/src/app/components/shared/statistic/statistic.component.scss +++ b/src/app/components/shared/statistic/statistic.component.scss @@ -8,3 +8,13 @@ mat-toolbar { height: 15px; background-color: #fff8e1; } + +.mat-raised-button { + display: flex; + justify-content: flex-end; + padding-top: 0%; + padding-bottom: 0%; + padding-right: 5%; + padding-left: 5%; + max-height: 50px; +} -- GitLab