Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: fancy border for pagination

Brad Barbin9899f1483782
diff --git a/apps/erp/app/components/Table/components/Pagination/Pagination.tsx b/apps/erp/app/components/Table/components/Pagination/Pagination.tsx
index b5fa80daa8..24077f6ba1 100644
--- a/apps/erp/app/components/Table/components/Pagination/Pagination.tsx
+++ b/apps/erp/app/components/Table/components/Pagination/Pagination.tsx
@@ -44,39 +44,42 @@ const Pagination = (props: PaginationProps) => {
}
return (
- <HStack
- className={cn(
- "text-center bg-card border-t border-border justify-between py-4 w-full z-[1]",
- compact ? "px-4" : "px-4 md:px-0"
- )}
- spacing={6}
- >
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button variant="secondary">{pageSize} rows</Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="start" className="w-48">
- <DropdownMenuLabel>Results per page</DropdownMenuLabel>
- <DropdownMenuSeparator />
- <DropdownMenuRadioGroup value={`${pageSize}`}>
- {pageSizes.map((size) => (
- <DropdownMenuRadioItem
- key={`${size}`}
- value={`${size}`}
- onClick={() => {
- setPageSize(size);
- }}
- >
- {size}
- </DropdownMenuRadioItem>
- ))}
- </DropdownMenuRadioGroup>
- </DropdownMenuContent>
- </DropdownMenu>
- <HStack>
- <PaginationButtons {...props} />
+ <>
+ <hr className="m-0 h-px w-full border-none bg-gradient-to-r from-zinc-200/0 via-zinc-500/30 to-zinc-200/0" />
+ <HStack
+ className={cn(
+ "text-center bg-card justify-between py-4 w-full z-[1]",
+ compact ? "px-4" : "px-4 md:px-0"
+ )}
+ spacing={6}
+ >
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="secondary">{pageSize} rows</Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="start" className="w-48">
+ <DropdownMenuLabel>Results per page</DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ <DropdownMenuRadioGroup value={`${pageSize}`}>
+ {pageSizes.map((size) => (
+ <DropdownMenuRadioItem
+ key={`${size}`}
+ value={`${size}`}
+ onClick={() => {
+ setPageSize(size);
+ }}
+ >
+ {size}
+ </DropdownMenuRadioItem>
+ ))}
+ </DropdownMenuRadioGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ <HStack>
+ <PaginationButtons {...props} />
+ </HStack>
</HStack>
- </HStack>
+ </>
);
};