From 5f8a280d0c7f3e9471609c27bff05b4723928de7 Mon Sep 17 00:00:00 2001 From: lukicenturi Date: Tue, 8 Oct 2024 17:39:11 +0700 Subject: [PATCH] fix(DataTable): make header pagination position fixed --- src/components/tables/RuiDataTable.vue | 20 ++++++++++---------- src/components/tables/RuiTablePagination.vue | 18 +++++++++++------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/components/tables/RuiDataTable.vue b/src/components/tables/RuiDataTable.vue index 6b04568..b9339b5 100644 --- a/src/components/tables/RuiDataTable.vue +++ b/src/components/tables/RuiDataTable.vue @@ -996,19 +996,19 @@ onMounted(() => { { [$style.outlined]: outlined }, ]" > +
- { } .table { - @apply min-w-full table-fixed divide-y divide-black/[0.12] whitespace-nowrap mx-auto my-0 max-w-fit relative border-t border-black/[0.12]; + @apply min-w-full table-fixed divide-y divide-black/[0.12] whitespace-nowrap mx-auto my-0 max-w-fit relative border-black/[0.12]; .tbody { @apply divide-y divide-black/[0.12]; diff --git a/src/components/tables/RuiTablePagination.vue b/src/components/tables/RuiTablePagination.vue index 548bb8f..aaa16b5 100644 --- a/src/components/tables/RuiTablePagination.vue +++ b/src/components/tables/RuiTablePagination.vue @@ -125,7 +125,7 @@ function onLast() {