feat(cart): enhance cart item layout and styles for improved design consistency

This commit is contained in:
2026-07-07 16:37:06 -03:00
parent 9d42de9fa8
commit 4885d39284
5 changed files with 44 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
<section class="d-flex flex-column h-100 overflow-hidden text-secondary" [style.background-color]="backgroundColor()">
<header class="d-flex align-items-center justify-content-between bg-transparent cart-header">
<header class="d-flex align-items-center p-3 justify-content-between bg-transparent cart-header">
<h2 class="m-0 text-uppercase fw-bold cart-title">{{ title() }}</h2>
@if (showClose()) {
@@ -9,7 +9,7 @@
}
</header>
<div class="d-grid gap-2 flex-grow-1 overflow-y-auto cart-items-container">
<div class="d-grid w-100 flex-grow-1 overflow-y-auto cart-items-container">
@for (item of items(); track item.productVariantId || item.product + item.discountedPrice; let idx = $index) {
<app-cart-item
[imageUrl]="item.imageUrl"
@@ -48,3 +48,4 @@
</section>

View File

@@ -23,10 +23,16 @@
.cart-items-container {
min-height: 0;
padding: 0 0 0 24px;
gap: 0;
scrollbar-color: #d5d5d5 transparent;
scrollbar-width: thin;
app-cart-item {
display: block;
}
&::-webkit-scrollbar {
width: 6px;
}