Skip to content

Commit 7327b19

Browse files
committed
fix ui
1 parent f3c11fd commit 7327b19

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

src/app/episode-details/episode-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2>{{episode.name}}</h2>
4141
<div class="row">
4242
<div class="col">
4343
<div class="table-responsive">
44-
<table class="table">
44+
<table class="table table-hover">
4545
<caption>Theme list</caption>
4646
<thead class="thead-light">
4747
<tr>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.form-check input:hover {
2+
cursor: pointer;
3+
background: #fc0;
4+
box-shadow: 0 0 10px rgba(0,0,0,0.5);
5+
padding: 10px;
6+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<div *ngIf="episode">
1+
<div *ngIf="episode" class="row">
2+
<div class="col-12 mb-3">
23
<h2>{{ episode.name }}</h2>
34
<form [formGroup]="form" (ngSubmit)="submit()">
45
<ul class="list-group" formArrayName="themeList" *ngFor="let theme of form.controls.themeList.controls; let i = index">
56
<li class="list-group-item mb-1">
67
<div class="form-check">
7-
<input class="form-check-input" type="checkbox" id="defaultCheck1" [formControlName]="i">
8-
<label class="form-check-label" for="defaultCheck1" [innerHTML]="themeList[i].title | linkify">
9-
10-
</label>
8+
<input class="form-check-input" type="checkbox" id="defaultCheck{{i}}" [formControlName]="i">
9+
<label class="form-check-label" for="defaultCheck{{i}}" [innerHTML]="themeList[i].title | linkify"></label>
1110
</div>
1211
</li>
1312
</ul>
14-
<button class="btn btn-primary">Link</button>
13+
<button class="btn btn-block btn-primary">Link</button>
1514
</form>
15+
</div>
1616
</div>

0 commit comments

Comments
 (0)