Skip to content

Commit 900e425

Browse files
committed
fix(pagination): fix component behavior in different directions and screens
1 parent 8e7c74e commit 900e425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/components/users/filters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const PaginationControls = ({ currentPage, totalPages, itemsPerPage, isLo
228228
</div>
229229

230230
<Pagination dir="ltr" className={`md:justify-end ic ${dir === 'rtl' ? 'flex-row-reverse' : ''}`}>
231-
<PaginationContent className="w-full overflow-x-auto justify-center">
231+
<PaginationContent className={cn("w-full overflow-x-auto justify-center", dir === 'rtl' ? 'md:justify-start' : 'md:justify-end')}>
232232
<PaginationItem>
233233
<PaginationPrevious onClick={() => onPageChange(currentPage - 1)} disabled={currentPage === 0 || isLoading} />
234234
</PaginationItem>

0 commit comments

Comments
 (0)