Skip to content

Commit 724ef67

Browse files
jr-98scastillo-jp
authored andcommitted
fix: TT-139 Reduce the left margin on coutome page
1 parent a4064ca commit 724ef67

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<table
22
*ngIf="customers"
3-
class="table table-sm table-bordered table-striped mb-0"
3+
class="table table-responsive-sm table-bordered table-striped mb-0"
44
datatable
55
[dtTrigger]="dtTrigger"
66
[dtOptions]="dtOptions"
77
>
88
<thead class="thead-blue">
99
<tr class="d-flex">
10-
<th class="col-4">Customer ID</th>
11-
<th class="col-5">Name</th>
12-
<th class="col-3 text-center">Options</th>
10+
<th class="col-sm-4">Customer ID</th>
11+
<th class="col-sm-5">Name</th>
12+
<th class="col-sm-3 text-center">Options</th>
1313
</tr>
1414
</thead>
1515
<app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar>
1616
<tbody *ngIf="((isLoading$ | async) === false)">
1717
<tr class="d-flex" *ngFor="let customer of customers">
18-
<td class="col-sm-4">{{ customer.id }}</td>
19-
<td class="col-sm-5">{{ customer.name }}</td>
20-
<td class="col-sm-3 text-center">
18+
<td class="col col-sm-4">{{ customer.id }}</td>
19+
<td class="col col-sm-5">{{ customer.name }}</td>
20+
<td class="col col-sm-3 text-center">
2121
<button
2222
(click)="editCustomer(customer.id)"
2323
type="button"

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
4040

4141
ngOnInit(): void {
4242
this.dtOptions = {
43-
scrollY: '290px',
43+
scrollY: '325px',
4444
paging: false,
45+
responsive: true,
4546
};
4647
this.loadCustomersSubscription = this.actionsSubject$
4748
.pipe(filter((action: any) => action.type === CustomerManagementActionTypes.LOAD_CUSTOMERS_SUCCESS))
4849
.subscribe((action) => {
4950
this.customers = action.payload;
5051
this.rerenderDataTable();
5152
});
52-
5353
this.changeCustomerSubscription = this.actionsSubject$
5454
.pipe(
5555
filter(
@@ -109,4 +109,5 @@ export class CustomerListComponent implements OnInit, OnDestroy, AfterViewInit {
109109
this.message = `Are you sure you want to delete ${item.name}?`;
110110
this.showModal = true;
111111
}
112+
112113
}

src/app/modules/customer-management/pages/customer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container">
1+
<div class="container-fluid px-0 full-height">
22
<div class="row">
33
<div style="padding: 15px;">
44
<button (click)="activateCustomerForm()" class="btn btn-primary">Add new customer</button>

0 commit comments

Comments
 (0)