Skip to content

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

improvement(frontend): reduce mobile padding on overview and dashboard pages (#8005)

claude[bot]30f3a256aaf9
diff --git a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
index eae1446b2f..7f6737af0c 100644
--- a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
@@ -24,7 +24,7 @@ export const PkiManagerLayout = () => {
<div className="flex h-full w-full flex-col overflow-x-hidden">
{assumedPrivilegeDetails && <AssumePrivilegeModeBanner />}
{isDashboard && <CertManagerInstanceBanner />}
- <div className="flex-1 overflow-x-hidden overflow-y-auto px-12 pt-10 pb-4">
+ <div className="flex-1 overflow-x-hidden overflow-y-auto px-6 pt-6 pb-4 md:px-12 md:pt-10">
<Outlet />
</div>
<UpgradePlanModal
diff --git a/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx b/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
index 85ed407b24..e1976be4fe 100644
--- a/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
+++ b/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
@@ -10,7 +10,7 @@ export const SecretManagerLayout = () => {
return (
<div className="flex h-full w-full flex-col overflow-x-hidden">
{assumedPrivilegeDetails && <AssumePrivilegeModeBanner />}
- <div className="flex-1 overflow-x-hidden overflow-y-auto px-12 pt-10 pb-4">
+ <div className="flex-1 overflow-x-hidden overflow-y-auto px-6 pt-6 pb-4 md:px-12 md:pt-10">
<Outlet />
</div>
</div>
diff --git a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
index 3eb2ad0d5b..55562851f0 100644
--- a/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
+++ b/frontend/src/pages/cert-manager/DashboardPage/DashboardPage.tsx
@@ -66,6 +66,7 @@ export const DashboardPage = () => {
<div className="mx-auto flex flex-col text-white">
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
+ className="mb-6 md:mb-10"
scope={ProjectType.CertificateManager}
title="Certificate Dashboard"
description="See the overall state of your certificates at a glance."
diff --git a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
index 905a043127..139b589ee8 100644
--- a/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/ProjectsPage.tsx
@@ -45,19 +45,20 @@ export const ProjectsPage = () => {
}
return (
- <div className="mx-auto flex max-w-8xl flex-col justify-start px-6">
+ <div className="mx-auto flex max-w-8xl flex-col justify-start px-0 md:px-6">
<Helmet>
<title>{t("common.head-title", { title: t("settings.members.title") })}</title>
<link rel="icon" href="/infisical.ico" />
</Helmet>
<PageHeader
+ className="mb-6 md:mb-10"
scope={isSubOrganization ? "namespace" : "org"}
title={`${isSubOrganization ? "Sub-Organization" : "Organization"} Overview`}
description="Your team's complete security toolkit — organized and ready when you need them."
/>
<DismissableAlert
variant="info"
- className="mb-6"
+ className="mb-4 md:mb-6"
actionKey="secret_sharing_moved_banner_dismissed"
>
<InfoIcon />
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index 8a92fea503..dd0f38630f 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -2655,6 +2655,7 @@ const OverviewPageContent = () => {
<div className="relative mx-auto mb-18 max-w-8xl text-mineshaft-50 dark:scheme-dark">
<div className="flex w-full items-baseline justify-between">
<PageHeader
+ className="mb-6 md:mb-10"
scope={ProjectType.SecretManager}
title="Project Overview"
description={