Skip to content

Commit 0983cc8

Browse files
committed
fix(data-list-item): enhance styling
1 parent a8c8e03 commit 0983cc8

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
*ngIf="fulfillment.fulfillmentState !== 'PENDING'; else noLabel"
8787
></ng-container>
8888
<vcl-data-list-item *ngFor="let label of fulfillment.labels">
89+
<!-- TODO Click on the parcel ID and you shall see more info about the parcel... -->
8990
<div class="row justify-content-between align-items-center">
9091
<span>Parcel Id</span>
9192
<span>{{ label.parcelId }}</span>

packages/modules/management/src/lib/components/shop/template/shop-template.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#itemTemplate
5555
let-item="item"
5656
>
57-
<div class="p-2 row align-items-center">
57+
<div class="flex row align-items-center">
5858
{{ item.name }}
5959
</div>
6060
</ng-template>

packages/modules/ui/src/lib/components/organisms/data-list/data-list.component.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
</vcl-data-list-header>
1010

1111
@for (item of items; track item.id) {
12-
<vcl-data-list-item [value]="item.id">
12+
<vcl-data-list-item
13+
class="col px-2"
14+
[value]="item.id"
15+
>
1316
<ng-container
1417
*ngIf="itemTemplate"
1518
[ngTemplateOutlet]="itemTemplate"

packages/modules/ui/src/lib/components/organisms/data-list/data-list.component.ts

-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
ChangeDetectionStrategy,
33
Component,
44
EventEmitter,
5-
HostBinding,
65
Input,
76
Output,
87
TemplateRef,
@@ -21,12 +20,6 @@ export class RcDataListComponent<T extends { id: string }> {
2120

2221
@Output() itemSelected = new EventEmitter<string>();
2322

24-
@HostBinding('class')
25-
_hostClasses = 'col h-100p';
26-
27-
// Selected item to be highlighted on the vcl-list...
28-
//
29-
3023
onDataListChange(value: string) {
3124
this.itemSelected.next(value);
3225
}

0 commit comments

Comments
 (0)