Skip to content

Commit fbdc64f

Browse files
committed
fix: ioet#296 vertical scroll on project type list table
1 parent 724e91d commit fbdc64f

File tree

2 files changed

+24
-30
lines changed

2 files changed

+24
-30
lines changed
Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
1-
<table class="table table-sm table-bordered table-striped">
2-
<thead class="thead-orange">
3-
<tr class="d-flex">
4-
<th class="col-9">Project type</th>
5-
<th class="col-3 text-center"></th>
6-
</tr>
7-
</thead>
8-
<tbody>
9-
<tr
10-
class="d-flex"
11-
*ngFor="
12-
let projectType of projectTypes | paginate: { itemsPerPage: itemsPerPage, currentPage: initPage2, id: 'second' }
13-
"
14-
>
15-
<td class="col-sm-9">{{ projectType.name }}</td>
16-
<td class="col-sm-3 text-center">
17-
<button type="button" class="btn btn-sm btn-primary" (click)="updateProjectType(projectType.id)"><i class="fa fa-pencil fa-xs"></i></button>
18-
<button type="button" class="btn btn-sm btn-danger ml-2" (click)="deleteProjectType(projectType.id)"><i class="fas fa-trash-alt fa-xs"></i></button>
19-
</td>
20-
</tr>
21-
</tbody>
22-
</table>
23-
<div class="d-flex align-items-end flex-column">
24-
<pagination-controls
25-
class="mt-auto p-2 custom-pagination"
26-
(pageChange)="initPage2 = $event"
27-
id="second"
28-
previousLabel=""
29-
nextLabel=""
30-
></pagination-controls>
1+
<div class="project-type-list-div">
2+
<table class="table table-sm table-bordered table-striped">
3+
<thead class="thead-orange">
4+
<tr class="d-flex">
5+
<th class="col-9">Project type</th>
6+
<th class="col-3 text-center"></th>
7+
</tr>
8+
</thead>
9+
<tbody>
10+
<tr class="d-flex" *ngFor="let projectType of projectTypes">
11+
<td class="col-sm-9">{{ projectType.name }}</td>
12+
<td class="col-sm-3 text-center">
13+
<button type="button" class="btn btn-sm btn-primary" (click)="updateProjectType(projectType.id)"><i
14+
class="fa fa-pencil fa-xs"></i></button>
15+
<button type="button" class="btn btn-sm btn-danger ml-2" (click)="deleteProjectType(projectType.id)"><i
16+
class="fas fa-trash-alt fa-xs"></i></button>
17+
</td>
18+
</tr>
19+
</tbody>
20+
</table>
3121
</div>
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
@import '../../../../../../../styles/colors.scss';
2+
3+
.project-type-list-div {
4+
max-height: 250px; overflow: auto; display:inline-block; width: 100%;
5+
}

0 commit comments

Comments
 (0)