From cc539bf70217da5a44c654e880235f07439c8414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Fri, 22 Mar 2019 03:09:32 +0100 Subject: [PATCH] Fix comment-creation-dialog --- .../submit-comment.component.html | 20 +++++++++---------- .../comment-list/comment-list.component.scss | 3 +-- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/app/components/shared/_dialogs/submit-comment/submit-comment.component.html b/src/app/components/shared/_dialogs/submit-comment/submit-comment.component.html index a28a98182..30d97bd2f 100644 --- a/src/app/components/shared/_dialogs/submit-comment/submit-comment.component.html +++ b/src/app/components/shared/_dialogs/submit-comment/submit-comment.component.html @@ -1,15 +1,13 @@ <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px"> + <mat-form-field class="input-block"> + <textarea matInput #commentBody placeholder="{{ 'comment-page.enter-comment' | translate}}" + matAutosizeMinRows=2 matAutosizeMaxRows=5 maxlength="255" [formControl]="bodyForm"></textarea> + <mat-hint align="end">{{commentBody.value.length}} / 255</mat-hint> + </mat-form-field> <div fxLayout="row" fxLayoutAlign="center"> - <form> - <mat-form-field class="input-block"> - <textarea matInput #commentBody placeholder="{{ 'comment-page.enter-comment' | translate}}" - matAutosizeMinRows=2 matAutosizeMaxRows=5 maxlength="255" [formControl]="bodyForm"></textarea> - <mat-hint align="end">{{commentBody.value.length}} / 255</mat-hint> - </mat-form-field> - <button mat-raised-button color="warn" - (click)="onNoClick()">{{ 'comment-page.abort' | translate}}</button> - <button mat-raised-button color="accent" - (click)="closeDialog(commentBody.value)">{{ 'comment-page.send' | translate}}</button> - </form> + <button mat-raised-button color="warn" + (click)="onNoClick()">{{ 'comment-page.abort' | translate}}</button> + <button mat-raised-button color="accent" + (click)="closeDialog(commentBody.value)">{{ 'comment-page.send' | translate}}</button> </div> </div> diff --git a/src/app/components/shared/comment-list/comment-list.component.scss b/src/app/components/shared/comment-list/comment-list.component.scss index 109ff4aaf..f38ed5392 100644 --- a/src/app/components/shared/comment-list/comment-list.component.scss +++ b/src/app/components/shared/comment-list/comment-list.component.scss @@ -21,7 +21,6 @@ input { } button{ - //min-height: 100% !important; min-width: 100px; } @@ -40,7 +39,7 @@ mat-icon { width: 60px; height: 60px; position: fixed; - top: 80%; + top: 82%; right: 35%; } -- GitLab