Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(ui): prevent detail cards from collapsing (#8216)
Andrew Huanga33f6f869da4
diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsxindex b87cada67a..322b8a18b4 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx@@ -81,7 +81,7 @@ const Page = () => {const isLinkedGroup = data && currentOrg ? data.group.orgId !== currentOrg.id : false;return (- <div className="mx-auto flex max-w-8xl flex-col">+ <div className="@container mx-auto flex max-w-8xl flex-col">{data && (<><Link@@ -164,13 +164,13 @@ const Page = () => {</DropdownMenuContent></DropdownMenu></PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><GroupDetailsSectiongroupId={groupId}handlePopUpOpen={handlePopUpOpen}canEditGroup={canEditGroup}/>- <div className="flex flex-1 flex-col gap-y-5">+ <div className="flex min-w-0 flex-1 flex-col gap-y-5"><GroupMembersSectiongroupId={groupId}groupSlug={data.group.slug}diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsxindex 3ac80e10a5..9b40b3d083 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx@@ -43,7 +43,7 @@ export const GroupDetailsSection = ({ groupId, handlePopUpOpen, canEditGroup = t});return data ? (- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>Group details</CardDescription>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex 44d82c76a8..0aa43b2a32 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -92,7 +92,7 @@ const Page = () => {const isScopeIdentity = data?.identity.orgId === currentOrg.id;return (- <div className="mx-auto flex max-w-8xl flex-col">+ <div className="@container mx-auto flex max-w-8xl flex-col">{data && (<><Link@@ -155,13 +155,13 @@ const Page = () => {</DropdownMenuContent></DropdownMenu></PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><IdentityDetailsSectionisCurrentOrgIdentity={data.identity.orgId === currentOrg.id}identityId={identityId}handlePopUpOpen={handlePopUpOpen}/>- <div className="flex flex-1 flex-col gap-y-5">+ <div className="flex min-w-0 flex-1 flex-col gap-y-5">{isAuthHidden ? (<Card><CardHeader>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsxindex d812d5d28c..3e011f974b 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx@@ -47,7 +47,7 @@ export const IdentityDetailsSection = ({const { data } = useGetOrgIdentityMembershipById(identityId);return data ? (- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>Machine identity details</CardDescription>diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsxindex 6d0d6775fc..238c79eab9 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/UserDetailsByIDPage.tsx@@ -96,7 +96,7 @@ const Page = withPermission(};return (- <div className="mx-auto flex max-w-8xl flex-col">+ <div className="@container mx-auto flex max-w-8xl flex-col">{membership && (<><Link@@ -215,9 +215,9 @@ const Page = withPermission(</DropdownMenu>)}</PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><UserDetailsSection membershipId={membershipId} handlePopUpOpen={handlePopUpOpen} />- <div className="flex flex-1 flex-col gap-y-5">+ <div className="flex min-w-0 flex-1 flex-col gap-y-5"><UserProjectsSection membershipId={membershipId} /><UserGroupsSection orgMembership={membership} /><UserAuditLogsSection orgMembership={membership} />diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsxindex 727fc5ff6e..0d9e019ed1 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserDetailsSection.tsx@@ -102,7 +102,7 @@ export const UserDetailsSection = ({ membershipId, handlePopUpOpen }: Props) =>const status = membership ? getStatus(membership) : null;return membership ? (- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>User membership details</CardDescription>diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsxindex aa53ccbf16..94714f949d 100644--- a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx+++ b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx@@ -98,7 +98,7 @@ const Page = () => {if (isPending) {return (<div- className="mx-auto flex max-w-8xl flex-col gap-5"+ className="@container mx-auto flex max-w-8xl flex-col gap-5"role="status"aria-label="Loading group details"aria-busy="true"@@ -108,9 +108,9 @@ const Page = () => {<Skeleton className="h-8 w-64" /><Skeleton className="h-4 w-80 max-w-full" /></div>- <div className="flex flex-col gap-5 lg:flex-row">- <Skeleton className="h-64 w-full lg:max-w-[24rem]" />- <Skeleton className="h-64 flex-1" />+ <div className="flex flex-col gap-5 @4xl:flex-row">+ <Skeleton className="h-64 w-full @4xl:max-w-[24rem] @4xl:shrink-0" />+ <Skeleton className="h-64 min-w-0 flex-1" /></div></div>);@@ -129,7 +129,7 @@ const Page = () => {const backLinkLabel = isCertManager ? "Groups" : "Project Groups";return (- <div className="mx-auto flex max-w-8xl flex-col gap-8">+ <div className="@container mx-auto flex max-w-8xl flex-col gap-8">{groupMembership ? (<><PageHeader@@ -184,7 +184,7 @@ const Page = () => {</DropdownMenuContent></DropdownMenu></PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><GroupDetailsSection groupMembership={groupMembership} /><GroupMembersSection groupMembership={groupMembership} /></div>diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsxindex b74c27d67f..e9d232c6f4 100644--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx@@ -38,7 +38,7 @@ export const GroupDetailsSection = ({ groupMembership }: Props) => {});return (- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>Group details</CardDescription>diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsxindex 95221171fc..b146bd08a6 100644--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersSection.tsx@@ -9,7 +9,7 @@ type Props = {export const GroupMembersSection = ({ groupMembership }: Props) => {return (- <Card className="flex-1">+ <Card className="min-w-0 flex-1"><CardHeader><CardTitle>Group Members</CardTitle><CardDescription>View members of this group</CardDescription>diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex 196cc17ea2..ad8e026296 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -212,7 +212,7 @@ const Page = () => {currentOrg.rootOrgId !== identityMembershipDetails?.identity.orgId;return (- <div className="mx-auto flex max-w-8xl flex-col gap-8">+ <div className="@container mx-auto flex max-w-8xl flex-col gap-8">{identityMembershipDetails ? (<><PageHeader@@ -330,7 +330,7 @@ const Page = () => {</DropdownMenu></div></PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><ProjectIdentityDetailsSectionidentity={identity || { ...identityMembershipDetails?.identity, projectId: "" }}isOrgIdentity={isOrgIdentity}@@ -338,7 +338,7 @@ const Page = () => {membership={identityMembershipDetails!}/>- <div className="flex flex-1 flex-col gap-y-5">+ <div className="flex min-w-0 flex-1 flex-col gap-y-5">{identity ? (<ProjectIdentityAuthenticationSectionidentity={identity}diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsxindex 7ae2a6ec17..838dc8d6a0 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx@@ -81,7 +81,7 @@ export const ProjectIdentityDetailsSection = ({return (<>- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>Machine identity details</CardDescription>diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsxindex 68c895ad01..27de3728b1 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx@@ -154,7 +154,7 @@ export const Page = () => {}return (- <div className="mx-auto flex max-w-8xl flex-col gap-8">+ <div className="@container mx-auto flex max-w-8xl flex-col gap-8">{membershipDetails ? (<><PageHeader@@ -272,9 +272,9 @@ export const Page = () => {)}</div></PageHeader>- <div className="flex flex-col gap-5 lg:flex-row">+ <div className="flex flex-col gap-5 @4xl:flex-row"><ProjectMemberDetailsSection membership={membershipDetails} />- <div className="flex flex-1 flex-col gap-y-5">+ <div className="flex min-w-0 flex-1 flex-col gap-y-5"><MemberRoleDetailsSectionmembershipDetails={membershipDetails}isMembershipDetailsLoading={isMembershipDetailsLoading}diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsxindex 2cdf7246ed..f2e4c29268 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx@@ -46,7 +46,7 @@ export const ProjectMemberDetailsSection = ({ membership }: Props) => {const name = firstName || lastName ? `${firstName} ${lastName}`.trim() : null;return (- <Card className="w-full lg:max-w-[24rem]">+ <Card className="w-full @4xl:max-w-[24rem] @4xl:shrink-0"><CardHeader className="border-b"><CardTitle>Details</CardTitle><CardDescription>User membership details</CardDescription>