Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement: align pagination left on grid view project overview

Scott Wilsonc8fba7ce4c4a
diff --git a/frontend/src/components/v2/Pagination/Pagination.tsx b/frontend/src/components/v2/Pagination/Pagination.tsx
index 51eed6396d..2d0e8b1a9f 100644
--- a/frontend/src/components/v2/Pagination/Pagination.tsx
+++ b/frontend/src/components/v2/Pagination/Pagination.tsx
@@ -54,7 +54,7 @@ export const Pagination = ({
)}
>
{startAdornment}
- <div className="ml-auto mr-6 flex items-center space-x-2">
+ <div className={twMerge("mr-4 flex items-center space-x-2", startAdornment && "ml-auto")}>
<div className="text-xs">
{(page - 1) * perPage + 1} - {Math.min((page - 1) * perPage + perPage, count)} of {count}
</div>
diff --git a/frontend/src/pages/org/[id]/overview/index.tsx b/frontend/src/pages/org/[id]/overview/index.tsx
index 45fc7f3d2b..9e39fd389e 100644
--- a/frontend/src/pages/org/[id]/overview/index.tsx
+++ b/frontend/src/pages/org/[id]/overview/index.tsx
@@ -876,7 +876,7 @@ const OrganizationPage = () => {
<Pagination
className={
projectsViewMode === ProjectsViewMode.GRID
- ? "col-span-full border-transparent bg-transparent"
+ ? "col-span-full !justify-start border-transparent bg-transparent pl-2"
: "rounded-b-md border border-mineshaft-600"
}
perPage={perPage}