feat(purchase-list): refactor purchase list item structure and styles for improved layout

This commit is contained in:
2026-07-08 10:12:20 -03:00
parent b7ed16966c
commit 6a5683f6b7
4 changed files with 13 additions and 6 deletions

View File

@@ -4,14 +4,12 @@
align-items: center;
padding: 16px;
padding-left:0;
border-bottom: 1px solid #e0e0e0;
transition: background-color 0.2s, border-radius 0.2s;
cursor: pointer;
}
.purchase-item:hover {
background-color: #f0f0f0;
border-radius: 8px;
border-bottom-color: transparent;
}
.purchase-item:hover .arrow-icon {
color: #5b75ff; /* Blue on hover */

View File

@@ -10,3 +10,4 @@ import { Component, Input } from '@angular/core';
export class PurchaseListItem {
@Input() purchase!: { id: string; date: string };
}

View File

@@ -1,6 +1,8 @@
<div class="purchase-list-container">
<app-purchase-list-item
*ngFor="let purchase of purchases"
[purchase]="purchase">
</app-purchase-list-item>
<ng-container *ngFor="let purchase of purchases; let last = last">
<app-purchase-list-item
[purchase]="purchase">
</app-purchase-list-item>
<div class="purchase-divider" *ngIf="!last"></div>
</ng-container>
</div>

View File

@@ -3,3 +3,9 @@
flex-direction: column;
width: 100%;
}
.purchase-divider {
height: 1px;
background-color: #DDDDDD;
width: 100%;
}