match grid header/footer padding, use Button component for pagination

This commit is contained in:
Justin Edmund 2025-12-23 14:24:03 -08:00
parent 3f2f6abefa
commit 27e9b959ab

View file

@ -472,21 +472,17 @@
</div> </div>
<div class="pagination-controls"> <div class="pagination-controls">
<button class="pagination-button" onclick={handlePrevPage} disabled={currentPage <= 1}> <Button variant="ghost" size="small" onclick={handlePrevPage} disabled={currentPage <= 1}>
Previous Previous
</button> </Button>
<span class="page-display"> <span class="page-display">
Page {currentPage} of {totalPages} Page {currentPage} of {totalPages}
</span> </span>
<button <Button variant="ghost" size="small" onclick={handleNextPage} disabled={currentPage >= totalPages}>
class="pagination-button"
onclick={handleNextPage}
disabled={currentPage >= totalPages}
>
Next Next
</button> </Button>
</div> </div>
</div> </div>
</div> </div>
@ -510,7 +506,7 @@
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: spacing.$unit; padding: spacing.$unit-2x;
gap: spacing.$unit; gap: spacing.$unit;
.controls-right { .controls-right {
@ -638,7 +634,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: spacing.$unit; padding: spacing.$unit-2x;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
background: #f8f9fa; background: #f8f9fa;
@ -652,26 +648,6 @@
align-items: center; align-items: center;
gap: spacing.$unit; gap: spacing.$unit;
.pagination-button {
padding: spacing.$unit * 0.5 spacing.$unit;
background: white;
border: 1px solid #ddd;
border-radius: 4px;
font-size: typography.$font-small;
cursor: pointer;
transition: all 0.2s;
&:hover:not(:disabled) {
background: #e9ecef;
border-color: #adb5bd;
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
.page-display { .page-display {
font-size: typography.$font-small; font-size: typography.$font-small;
color: #495057; color: #495057;