Skip to content

Commit dab947e

Browse files
Hardik500Laurie T. Malau
authored and
Laurie T. Malau
committed
Fixed some padding and height
1 parent 06abd68 commit dab947e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/dashboard/src/Pagination/Pagination.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ function Pagination(props: PaginationProps) {
2929
};
3030
const getClassnames = (pageNumber: string | number) => {
3131
if (pageNumber === currentPage) {
32-
return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 bg-gray-100 disabled pointer-events-none";
32+
return "font-semibold text-gray-500 dark:text-gray-400 max-h-9 max-w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 dark:bg-gray-700 bg-gray-100 disabled pointer-events-none px-3 py-2";
3333
}
3434
if (pageNumber === "...") {
35-
return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 disabled pointer-events-none";
35+
return "font-semibold text-gray-500 dark:text-gray-400 max-h-9 max-w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 disabled pointer-events-none px-3 py-2";
3636
}
37-
return "text-gray-500 dark:text-gray-400 h-9 w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer";
37+
return "font-semibold text-gray-500 dark:text-gray-400 max-h-9 max-w-8 flex items-center justify-center rounded-md hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-2";
3838
};
3939

4040
return (
4141
<nav className="mt-16 mb-16">
4242
<ul className="flex justify-center items-center space-x-4">
4343
<li
44-
className={`font-bold text-gray-300 ${
44+
className={`font-semibold text-gray-300 ${
4545
currentPage === 1
4646
? "disabled dark:text-gray-500"
4747
: "cursor-pointer dark:text-gray-400 text-gray-500"
@@ -63,7 +63,7 @@ function Pagination(props: PaginationProps) {
6363
);
6464
})}
6565
<li
66-
className={`font-bold text-gray-300 ${
66+
className={`font-semibold text-gray-300 ${
6767
currentPage === totalNumberOfPages
6868
? "disabled dark:text-gray-500"
6969
: "cursor-pointer dark:text-gray-400 text-gray-500"

0 commit comments

Comments
 (0)