Skip to content

Commit 4328c7c

Browse files
author
Ian Redpath
committed
use textarea instead, improve width for better readability
1 parent a5b1356 commit 4328c7c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

public/project/components/libraries/library.view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h5 class="profile-header"><a [routerLink]='["/User", { user: comment.userId }]'
6666
<h6 class="timestamp">{{getCommentDate(comment.date)}} {{comment.edited ? '(edited)' : ''}}</h6>
6767

6868
<div *ngIf="isEditingComment(comment._id)">
69-
<input type="text" [(ngModel)]="editCommentText">
69+
<textarea [(ngModel)]="editCommentText" class="comment-input"></textarea>
7070
<span class="glyphicon glyphicon-check" (click)="saveEditComment()"></span>
7171
<button class="btn btn-default" (click)="cancelEditComment()">Cancel</button>
7272
</div>
@@ -78,7 +78,7 @@ <h6 class="timestamp">{{getCommentDate(comment.date)}} {{comment.edited ? '(edit
7878
</table>
7979
</div>
8080
<div *ngIf="userService.getActiveUser()" class="new-comment">
81-
<input type="text" class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()">
81+
<textarea class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()"></textarea>
8282
<button class="btn" (click)="addComment()">Comment!</button>
8383
</div>
8484
</div>

public/project/components/movies/movie.view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h3 class="h4-margins">Comments</h3>
8080
<h5 class="profile-header"><a [routerLink]='["/User", { user: comment.userId }]'>{{comment.username}}</a></h5>
8181
<h6 class="timestamp">{{getCommentDate(comment.date)}} {{comment.edited ? '(edited)' : ''}}</h6>
8282
<div *ngIf="isEditingComment(comment._id)">
83-
<input type="text" [(ngModel)]="editCommentText">
83+
<textarea [(ngModel)]="editCommentText" class="comment-input"></textarea>
8484
<span class="glyphicon glyphicon-check" (click)="saveEditComment()"></span>
8585
<button class="btn btn-default" (click)="cancelEditComment()">Cancel</button>
8686
</div>
@@ -92,7 +92,7 @@ <h6 class="timestamp">{{getCommentDate(comment.date)}} {{comment.edited ? '(edit
9292
</table>
9393
</div>
9494
<div *ngIf="userService.getActiveUser()" class="new-comment">
95-
<input type="text" class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()">
95+
<textarea class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()"></textarea>
9696
<button class="btn" (click)="addComment()">Comment!</button>
9797
</div>
9898
</div>

public/project/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,7 @@
202202
.comments-row > td {
203203
padding-bottom: .5em;
204204
padding-top: .5em;
205+
}
206+
.comment-input {
207+
width:50%;
205208
}

0 commit comments

Comments
 (0)