Skip to content

Commit 09cc0bf

Browse files
author
Ian Redpath
committed
quick fix to comment spacing
1 parent fe426f7 commit 09cc0bf

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1 *ngIf="!hasEditRights()">{{library.name}}</h1>
5555

5656
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 comments">
5757
<h3 class="h4-margins">Comments</h3>
58-
<div class="results-row col-xs-12 col-sm-12 col-md-12 col-lg-12">
58+
<div class="results-row">
5959
<span class="no-results" *ngIf="library.comments.length ===0">No comments</span>
6060
<table>
6161
<tr *ngFor="#comment of library.comments">
@@ -73,7 +73,7 @@ <h3 class="h4-margins">Comments</h3>
7373
</tr>
7474
</table>
7575
</div>
76-
<div *ngIf="userService.getActiveUser()">
76+
<div *ngIf="userService.getActiveUser()" class="new-comment">
7777
<input type="text" class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()">
7878
<button class="btn" (click)="addComment()">Comment!</button>
7979
</div>

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

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ <h1 class="movie-title">{{omdbMovie.title}}</h1>
2727
<span *ngIf="myRating !== 0 && myRatingBackup !== 0" class="clear-rating clickable glyphicon glyphicon-remove" (click)="unrate()"></span>
2828
</div>
2929
</div>
30-
<!--
31-
<label for="my-rating">My Rating:</label>
32-
<div class="my-rating" (mouseleave)="clearPreview()" (mouseenter)="storeRating()">
33-
<span class="glyphicon clickable {{ myRating < 1 ? 'glyphicon-star-empty': 'glyphicon-star' }}"
34-
(mouseenter)="ratePreview(1)" (click)="rate(1)"></span>
35-
<span class="glyphicon clickable {{ myRating < 2 ? 'glyphicon-star-empty': 'glyphicon-star' }}"
36-
(mouseenter)="ratePreview(2)" (click)="rate(2)"></span>
37-
<span class="glyphicon clickable {{ myRating < 3 ? 'glyphicon-star-empty': 'glyphicon-star' }}"
38-
(mouseenter)="ratePreview(3)" (click)="rate(3)"></span>
39-
<span class="glyphicon clickable {{ myRating < 4 ? 'glyphicon-star-empty': 'glyphicon-star' }}"
40-
(mouseenter)="ratePreview(4)" (click)="rate(4)"></span>
41-
<span class="glyphicon clickable {{ myRating < 5 ? 'glyphicon-star-empty': 'glyphicon-star' }}"
42-
(mouseenter)="ratePreview(5)" (click)="rate(5)"></span>
43-
<button class="btn btn-default" (click)="unrate()">Clear</button>
44-
</div>-->
4530
</div>
4631
</div>
4732
<div class="col-xs-6 col-sm-6 col-md-8 col-lg-8 xxs">
@@ -101,10 +86,10 @@ <h3 class="h4-margins">Comments</h3>
10186
</td>
10287
</tr>
10388
</table>
104-
<div *ngIf="userService.getActiveUser()">
105-
<input type="text" class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()">
106-
<button class="btn" (click)="addComment()">Comment!</button>
107-
</div>
89+
</div>
90+
<div *ngIf="userService.getActiveUser()" class="new-comment">
91+
<input type="text" class="comment-input" [(ngModel)]="newComment" (keyup.enter)="addComment()">
92+
<button class="btn" (click)="addComment()">Comment!</button>
10893
</div>
10994
</div>
11095
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" *ngIf="!fetchingLibraries">

public/project/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,8 @@
173173
.my-rating-wrapper {
174174
margin-bottom: 10px;
175175
margin-top: 10px;
176+
}
177+
178+
.new-comment {
179+
margin-top: 20px;
176180
}

0 commit comments

Comments
 (0)