-scroll เมื่อ ชุดข้อมูลมากกว่า 5

This commit is contained in:
2025-11-14 12:29:59 +07:00
parent 7b441c3600
commit ee72ef6676
3 changed files with 7 additions and 2 deletions

View File

@@ -638,3 +638,9 @@
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
}
.ledger-table.is-scrollable {
max-height: 25rem;
overflow-y: auto;
padding-right: 0.5rem;
}

View File

@@ -118,7 +118,7 @@
</div>
<button class="btn btn--ghost btn--compact">ดูทั้งหมด</button>
</div>
<div class="ledger-table">
<div class="ledger-table" [class.is-scrollable]="myActData.length > 5">
<div class="ledger-row ledger-head">
<span>รายการ</span>
<span>หมวดหมู่</span>

View File

@@ -261,5 +261,4 @@ export class MainDashboardComponent implements OnInit {
return `conic-gradient(${segments})`;
}
}