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(dialog): constrain modal content height (#7545)
Andrew Huang90fe6b0ef009
diff --git a/frontend/src/components/honey-tokens/CreateHoneyTokenModal.tsx b/frontend/src/components/honey-tokens/CreateHoneyTokenModal.tsxindex 56ab95ca35..6b0f004a48 100644--- a/frontend/src/components/honey-tokens/CreateHoneyTokenModal.tsx+++ b/frontend/src/components/honey-tokens/CreateHoneyTokenModal.tsx@@ -57,7 +57,7 @@ export const CreateHoneyTokenModal = ({ onOpenChange, isOpen, ...props }: Props)onOpenChange(open);}}>- <DialogContent className="max-w-3xl overflow-visible">+ <DialogContent className="max-w-3xl"><DialogHeader><DialogTitle>{selectedType ? (diff --git a/frontend/src/components/honey-tokens/EditHoneyTokenModal.tsx b/frontend/src/components/honey-tokens/EditHoneyTokenModal.tsxindex 583d7a229f..2ed5fd7f74 100644--- a/frontend/src/components/honey-tokens/EditHoneyTokenModal.tsx+++ b/frontend/src/components/honey-tokens/EditHoneyTokenModal.tsx@@ -15,7 +15,7 @@ export const EditHoneyTokenModal = ({ isOpen, onOpenChange, honeyToken }: Props)return (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="max-w-2xl overflow-visible">+ <DialogContent className="max-w-2xl"><DialogHeader><DialogTitle><HoneyTokenModalHeader type={honeyToken.type as HoneyTokenType} isEdit />diff --git a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsxindex 6397d987ce..d484f6902a 100644--- a/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx+++ b/frontend/src/components/v3/generic/AlertDialog/AlertDialog.tsx@@ -77,7 +77,7 @@ function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">)<divdata-slot="alert-dialog-footer"className={cn(- "-mx-4 -mb-4 flex flex-row flex-wrap justify-end gap-2 rounded-b-xl border-t border-border px-4 py-3 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2",+ "-mx-4 -mb-4 flex flex-row flex-wrap justify-end gap-2 rounded-b-xl border-t border-border p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2",className)}{...props}diff --git a/frontend/src/components/v3/generic/Dialog/Dialog.stories.tsx b/frontend/src/components/v3/generic/Dialog/Dialog.stories.tsxindex 4b77f4e578..60ace63282 100644--- a/frontend/src/components/v3/generic/Dialog/Dialog.stories.tsx+++ b/frontend/src/components/v3/generic/Dialog/Dialog.stories.tsx@@ -6,6 +6,7 @@ import { Label } from "../Label";import { Separator } from "../Separator";import {Dialog,+ DialogBody,DialogClose,DialogContent,DialogDescription,@@ -80,7 +81,7 @@ export const WithForm: Story = {docs: {description: {story:- "Embed form fields inside `DialogContent` for create / edit flows. Keep the description short and place inputs between the header and footer — the dialog's grid layout gives consistent `gap-4` spacing between sections."+ "Embed form fields inside `DialogContent` for create / edit flows. Keep the description short and place inputs between the header and footer — the padded shell gives each section consistent spacing while the footer breaks out to the dialog edges."}}},@@ -156,7 +157,7 @@ export const ScrollableContent: Story = {docs: {description: {story:- "For long content, anchor the header and footer while the middle scrolls — common for terms, changelogs, and audit log previews. Wrap the scroll region between two `Separator`s in a single column so the rules sit flush against the scrolling content (the parent's gap would otherwise push padding between them)."+ "`DialogContent` is capped to the available viewport height. Put long content in `DialogBody` so the middle owns scrolling while the padded header and full-width footer remain anchored. Portaled selects, popovers, and tooltips can still escape the scroll region."}}},@@ -170,9 +171,9 @@ export const ScrollableContent: Story = {<DialogTitle>Terms of service</DialogTitle><DialogDescription>Please review the terms before continuing.</DialogDescription></DialogHeader>- <div className="flex flex-col">+ <DialogBody className="flex flex-col"><Separator />- <div className="flex max-h-64 thin-scrollbar flex-col gap-3 overflow-y-auto py-4 text-sm text-foreground">+ <div className="flex flex-col gap-3 py-4 text-sm text-foreground">{Array.from({ length: 10 }).map((_, i) => (// eslint-disable-next-line react/no-array-index-key<p key={i}>@@ -184,7 +185,7 @@ export const ScrollableContent: Story = {))}</div><Separator />- </div>+ </DialogBody><DialogFooter><DialogClose asChild><Button variant="ghost">Decline</Button>diff --git a/frontend/src/components/v3/generic/Dialog/Dialog.tsx b/frontend/src/components/v3/generic/Dialog/Dialog.tsxindex 500d791d85..7aee1a5e9c 100644--- a/frontend/src/components/v3/generic/Dialog/Dialog.tsx+++ b/frontend/src/components/v3/generic/Dialog/Dialog.tsx@@ -4,7 +4,10 @@ import { XIcon } from "lucide-react";import { cn } from "../../utils";-const DIALOG_CONTENT_WIDTH_CLASSNAME = "w-lg max-w-[calc(100%-2rem)]";+const DIALOG_CONTENT_WIDTH_CLASSNAME = "w-[calc(100%-2rem)] max-w-lg";++const isAllowedOutsideInteraction = (target: EventTarget | null) =>+ Boolean((target as HTMLElement)?.closest?.("[data-sonner-toast], .react-select-menu-portal"));function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {return <DialogPrimitive.Root data-slot="dialog" {...props} />;@@ -43,6 +46,7 @@ function DialogContent({children,showCloseButton = true,onPointerDownOutside,+ onInteractOutside,overlayClassName,...props}: React.ComponentProps<typeof DialogPrimitive.Content> & {@@ -55,18 +59,24 @@ function DialogContent({<DialogPrimitive.Contentdata-slot="dialog-content"className={cn(- "fixed top-[50%] left-[50%] z-50 grid translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-popover p-6 text-foreground shadow-lg duration-200 outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",+ "fixed top-[50%] left-[50%] z-50 flex max-h-[calc(100dvh-2rem)] thin-scrollbar translate-x-[-50%] translate-y-[-50%] flex-col gap-4 overflow-y-auto rounded-lg border border-border bg-popover p-6 text-foreground shadow-lg duration-200 outline-none has-data-[slot=dialog-footer]:pb-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",DIALOG_CONTENT_WIDTH_CLASSNAME,className)}onPointerDownOutside={(e) => {- // Keep the dialog open when a toast rendered above it is clicked.- if ((e.target as HTMLElement)?.closest?.("[data-sonner-toast]")) {+ if (isAllowedOutsideInteraction(e.target)) {e.preventDefault();return;}onPointerDownOutside?.(e);}}+ onInteractOutside={(e) => {+ if (isAllowedOutsideInteraction(e.target)) {+ e.preventDefault();+ return;+ }+ onInteractOutside?.(e);+ }}{...props}>{children}@@ -88,7 +98,17 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {return (<divdata-slot="dialog-header"- className={cn("flex flex-col gap-2 text-left", className)}+ className={cn("flex shrink-0 flex-col gap-2 text-left", className)}+ {...props}+ />+ );+}++function DialogBody({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-body"+ className={cn("min-h-0 thin-scrollbar min-w-0 flex-1 overflow-y-auto", className)}{...props}/>);@@ -98,7 +118,10 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {return (<divdata-slot="dialog-footer"- className={cn("flex flex-row flex-wrap justify-end gap-2", className)}+ className={cn(+ "sticky bottom-0 z-10 -mx-6 flex shrink-0 flex-row flex-wrap justify-end gap-2 rounded-b-lg border-t border-border bg-container p-4",+ className+ )}{...props}/>);@@ -130,6 +153,7 @@ function DialogDescription({export {Dialog,DIALOG_CONTENT_WIDTH_CLASSNAME,+ DialogBody,DialogClose,DialogContent,DialogDescription,diff --git a/frontend/src/components/v3/generic/ReactSelect/CreatableSelect.tsx b/frontend/src/components/v3/generic/ReactSelect/CreatableSelect.tsxindex d759a971cd..426617fcf1 100644--- a/frontend/src/components/v3/generic/ReactSelect/CreatableSelect.tsx+++ b/frontend/src/components/v3/generic/ReactSelect/CreatableSelect.tsx@@ -9,6 +9,8 @@ export const CreatableSelect = <T,>({closeMenuOnSelect,isError,components,+ menuPortalTarget = typeof document === "undefined" ? undefined : document.body,+ menuPosition = "fixed",...props}: CreatableProps<T, boolean, GroupBase<T>> & { isError?: boolean }) => {return (@@ -18,6 +20,8 @@ export const CreatableSelect = <T,>({hideSelectedOptions={false}unstyleddata-slot="creatable-select"+ menuPortalTarget={menuPortalTarget}+ menuPosition={menuPosition}styles={selectStyles as any}components={{ DropdownIndicator, ClearIndicator, MultiValueRemove, Option, ...components }}classNames={(isError ? getSelectClassNames(isError) : selectClassNames) as any}diff --git a/frontend/src/components/v3/generic/ReactSelect/FilterableSelect.tsx b/frontend/src/components/v3/generic/ReactSelect/FilterableSelect.tsxindex 5439099f61..9b8d46bf74 100644--- a/frontend/src/components/v3/generic/ReactSelect/FilterableSelect.tsx+++ b/frontend/src/components/v3/generic/ReactSelect/FilterableSelect.tsx@@ -12,6 +12,8 @@ export const FilterableSelect = <T,>({options = [],isError,components,+ menuPortalTarget = typeof document === "undefined" ? undefined : document.body,+ menuPosition = "fixed",...props}: Props<T, boolean, GroupBase<T>> & {groupBy?: string | null;@@ -50,6 +52,8 @@ export const FilterableSelect = <T,>({unstyledoptions={processedOptions}tabSelectsValue={tabSelectsValue}+ menuPortalTarget={menuPortalTarget}+ menuPosition={menuPosition}styles={selectStyles as any}components={{DropdownIndicator,diff --git a/frontend/src/components/v3/generic/ReactSelect/styles.ts b/frontend/src/components/v3/generic/ReactSelect/styles.tsindex c21b879db0..532874a284 100644--- a/frontend/src/components/v3/generic/ReactSelect/styles.ts+++ b/frontend/src/components/v3/generic/ReactSelect/styles.ts@@ -35,7 +35,8 @@ export const selectClassNames: ClassNamesConfig<unknown, boolean, GroupBase<unknnoOptionsMessage: () => "text-muted p-2 text-sm",loadingMessage: () => "text-muted p-2 text-sm",group: () => "pb-1",- groupHeading: () => "px-2 pt-2 pb-1 text-xs font-medium text-muted"+ groupHeading: () => "px-2 pt-2 pb-1 text-xs font-medium text-muted",+ menuPortal: () => "react-select-menu-portal"};export const selectStyles: StylesConfig<unknown, boolean, GroupBase<unknown>> = {@@ -53,7 +54,8 @@ export const selectStyles: StylesConfig<unknown, boolean, GroupBase<unknown>> =}),menuPortal: (provided) => ({...provided,- zIndex: 99999+ zIndex: 99999,+ pointerEvents: "auto"})};diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/AddApplicationMemberModal.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/AddApplicationMemberModal.tsxindex b5c0ac6333..438df2e4f8 100644--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/AddApplicationMemberModal.tsx+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/AddApplicationMemberModal.tsx@@ -4,7 +4,7 @@ import { HardDriveIcon, UserIcon, UsersIcon } from "lucide-react";import { createNotification } from "@app/components/notifications";import { RoleOption } from "@app/components/roles";-import { FilterableSelect, FormControl } from "@app/components/v2";+import { FormControl } from "@app/components/v2";import {Button,ButtonGroup,@@ -15,6 +15,7 @@ import {DialogHeader,DialogTitle} from "@app/components/v3";+import { FilterableSelect } from "@app/components/v3/generic/ReactSelect";import { apiRequest } from "@app/config/request";import { useProject } from "@app/context";import {@@ -271,7 +272,7 @@ export const AddApplicationMemberModal = ({return (<Dialog open={isOpen} onOpenChange={handleClose}>- <DialogContent className="max-w-2xl overflow-visible">+ <DialogContent className="max-w-2xl"><DialogHeader><DialogTitle>Add Member</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsxindex d5e6ef15fb..25d405ee4b 100644--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx@@ -855,7 +855,7 @@ export const ApplicationSettingsTab = ({ application, profiles }: Props) => {if (!open) setProfilesToAttach([]);}}>- <DialogContent className="max-w-md overflow-visible">+ <DialogContent className="max-w-md"><DialogHeader><DialogTitle>Attach Profiles</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsxindex faa74f8abe..0986431e6e 100644--- a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx+++ b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx@@ -91,7 +91,7 @@ export const ConfigureProfilesModal = ({ application, isOpen, onOpenChange }: Prreturn (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="max-w-md overflow-visible">+ <DialogContent className="max-w-md"><DialogHeader><DialogTitle>Configure Profiles</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsxindex 934da72374..0178a93fa6 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx@@ -19,6 +19,7 @@ import {DialogClose,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,Field,@@ -556,11 +557,11 @@ export const GitHubAppSelector = ({</>)}</div>- <div className="mt-4 flex items-center justify-end">+ <DialogFooter><DialogClose asChild><Button variant="outline">Close</Button></DialogClose>- </div>+ </DialogFooter></DialogContent></Dialog></>diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/EditAppConnectionDetailsModal.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/EditAppConnectionDetailsModal.tsxindex e500aab1e3..93e72f9bbf 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/EditAppConnectionDetailsModal.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/EditAppConnectionDetailsModal.tsx@@ -9,6 +9,7 @@ import {DialogClose,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle} from "@app/components/v3";@@ -68,7 +69,12 @@ const Content = ({ appConnection, onComplete }: ContentProps) => {<FormProvider {...form}><form onSubmit={handleSubmit(onSubmit)}><GenericAppConnectionsFields />- <div className="mt-8 flex items-center gap-3">+ <DialogFooter className="mt-8">+ <DialogClose asChild>+ <Button type="button" variant="outline">+ Cancel+ </Button>+ </DialogClose><Buttontype="submit"variant={scopeVariant}@@ -77,12 +83,7 @@ const Content = ({ appConnection, onComplete }: ContentProps) => {>Update Details</Button>- <DialogClose asChild>- <Button type="button" variant="outline">- Cancel- </Button>- </DialogClose>- </div>+ </DialogFooter></form></FormProvider>);diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupMemberModal.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupMemberModal.tsxindex 9375575fcf..56ae465e4b 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupMemberModal.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/AddGroupMemberModal.tsx@@ -231,7 +231,7 @@ export const AddGroupMembersModal = ({return (<Dialog open={isOpen} onOpenChange={handleOpenChange}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>Add Group Members</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex 464a36c794..6383da70fc 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -221,7 +221,7 @@ const Page = () => {open={popUp?.identity?.isOpen}onOpenChange={(isOpen) => handlePopUpToggle("identity", isOpen)}>- <DialogContent className="max-w-xl overflow-visible">+ <DialogContent className="max-w-xl"><DialogHeader><DialogTitle>{`${popUp?.identity?.data ? "Update" : "Create"} Machine Identity`}diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsxindex 6f27539b5d..652f61ccf7 100644--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerAuthMethod/KmipServerAuthMethodModal.tsx@@ -134,7 +134,7 @@ export const KmipServerAuthMethodModal = ({return (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="max-w-lg overflow-visible">+ <DialogContent className="max-w-lg"><DialogHeader><DialogTitle>Edit Auth Method</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsxindex 790d9e71c9..fe86a33087 100644--- a/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx+++ b/frontend/src/pages/organization/KmipServersPage/KmipServerDetailsByIDPage/components/KmipServerCertConfig/KmipServerCertConfigModal.tsx@@ -96,7 +96,7 @@ export const KmipServerCertConfigModal = ({ isOpen, onOpenChange, kmipServer }:return (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="max-w-lg overflow-visible">+ <DialogContent className="max-w-lg"><DialogHeader><DialogTitle>Edit Certificate Configuration</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsxindex 5a4e24fe62..751491d7b1 100644--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateGroupsSection.tsx@@ -17,6 +17,7 @@ import {Dialog,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,Empty,@@ -339,7 +340,7 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {</form><Dialog open={isAddGroupModalOpen} onOpenChange={setIsAddGroupModalOpen}>- <DialogContent className="max-w-xl overflow-visible">+ <DialogContent className="max-w-xl"><DialogHeader><DialogTitle>Add Groups to Template</DialogTitle><DialogDescription>@@ -396,7 +397,7 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {)}/></div>- <div className="mt-8 flex items-center justify-end gap-4">+ <DialogFooter className="mt-8"><Button type="button" variant="ghost" onClick={handleCloseAddGroupModal}>Cancel</Button>@@ -407,7 +408,7 @@ export const ProjectTemplateGroupsSection = ({ projectTemplate }: Props) => {>Add Groups</Button>- </div>+ </DialogFooter></form></DialogContent></Dialog>diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsxindex 58de756183..eed080ab42 100644--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateIdentitiesSection.tsx@@ -18,6 +18,7 @@ import {Dialog,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,Empty,@@ -469,7 +470,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =></form><Dialog open={isAddIdentityModalOpen} onOpenChange={setIsAddIdentityModalOpen}>- <DialogContent className="max-w-xl overflow-visible">+ <DialogContent className="max-w-xl"><DialogHeader><DialogTitle>Add Machine Identity to Template</DialogTitle><DialogDescription>@@ -553,7 +554,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =></Field>)}/>- <div className="mt-4 flex items-center justify-end gap-4">+ <DialogFooter className="mt-4"><Button type="button" variant="ghost" onClick={handleCloseAddIdentityModal}>Cancel</Button>@@ -565,7 +566,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>>Add to Template</Button>- </div>+ </DialogFooter></form>)}{addMachineIdentityType === AddIdentityType.AssignExisting && (@@ -613,7 +614,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =></Field>)}/>- <div className="mt-4 flex items-center justify-end gap-4">+ <DialogFooter className="mt-4"><Button type="button" variant="ghost" onClick={handleCloseAddIdentityModal}>Cancel</Button>@@ -625,7 +626,7 @@ export const ProjectTemplateIdentitiesSection = ({ projectTemplate }: Props) =>>Assign to Template</Button>- </div>+ </DialogFooter></form>)}</DialogContent>diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsxindex d9ba8043b7..8c0ae80e16 100644--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/EditProjectTemplateSection/components/ProjectTemplateUsersSection.tsx@@ -17,6 +17,7 @@ import {Dialog,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,Empty,@@ -340,7 +341,7 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {</form><Dialog open={isAddUserModalOpen} onOpenChange={setIsAddUserModalOpen}>- <DialogContent className="max-w-xl overflow-visible">+ <DialogContent className="max-w-xl"><DialogHeader><DialogTitle>Add Users to Template</DialogTitle><DialogDescription>@@ -395,7 +396,7 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {)}/></div>- <div className="mt-8 flex items-center justify-end gap-4">+ <DialogFooter className="mt-8"><Button type="button" variant="ghost" onClick={handleCloseAddUserModal}>Cancel</Button>@@ -406,7 +407,7 @@ export const ProjectTemplateUsersSection = ({ projectTemplate }: Props) => {>Add Users</Button>- </div>+ </DialogFooter></form></DialogContent></Dialog>diff --git a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplateDetailsModal.tsx b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplateDetailsModal.tsxindex 23e319cb77..d4a99fb3f4 100644--- a/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplateDetailsModal.tsx+++ b/frontend/src/pages/organization/ProductSettingsPage/project-templates/ProjectTemplateDetailsModal.tsx@@ -8,6 +8,7 @@ import {Dialog,DialogClose,DialogContent,+ DialogFooter,DialogHeader,DialogTitle,Field,@@ -100,7 +101,7 @@ const ProjectTemplateForm = ({ onComplete, projectTemplate, projectType }: FormP/>{errors.description?.message && <FieldError>{errors.description.message}</FieldError>}</Field>- <div className="mt-4 flex items-center justify-end gap-4">+ <DialogFooter className="mt-4"><DialogClose asChild><Button variant="ghost">Cancel</Button></DialogClose>@@ -113,7 +114,7 @@ const ProjectTemplateForm = ({ onComplete, projectTemplate, projectType }: FormP>{projectTemplate ? "Update" : "Add"} Template</Button>- </div>+ </DialogFooter></form>);};diff --git a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsxindex b0cf350b3a..0764a98197 100644--- a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx+++ b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx@@ -5,6 +5,7 @@ import {Dialog,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,IconButton,@@ -58,11 +59,11 @@ const Content = ({ secretValue, onClose }: ContentProps) => {</Tooltip></div>- <div className="flex w-full justify-end">+ <DialogFooter><Button variant="outline" onClick={onClose}>Close</Button>- </div>+ </DialogFooter></>);};diff --git a/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/AddShareSecretModal.tsx b/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/AddShareSecretModal.tsxindex a4b6df750f..23368b043c 100644--- a/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/AddShareSecretModal.tsx+++ b/frontend/src/pages/organization/SecretSharingPage/components/ShareSecret/AddShareSecretModal.tsx@@ -1,5 +1,6 @@import {Dialog,+ DialogBody,DialogContent,DialogDescription,DialogHeader,@@ -31,15 +32,17 @@ export const AddShareSecretModal = ({ popUp, handlePopUpToggle }: Props) => {<DialogTitle>Share a Secret</DialogTitle><DialogDescription>Securely share one off secrets with your team.</DialogDescription></DialogHeader>- <ShareSecretForm- isPublic={false}- value={(popUp.createSharedSecret.data as { value?: string })?.value}- allowSecretSharingOutsideOrganization={- currentOrg?.allowSecretSharingOutsideOrganization ?? true- }- maxSharedSecretLifetime={currentOrg?.maxSharedSecretLifetime}- maxSharedSecretViewLimit={currentOrg?.maxSharedSecretViewLimit}- />+ <DialogBody>+ <ShareSecretForm+ isPublic={false}+ value={(popUp.createSharedSecret.data as { value?: string })?.value}+ allowSecretSharingOutsideOrganization={+ currentOrg?.allowSecretSharingOutsideOrganization ?? true+ }+ maxSharedSecretLifetime={currentOrg?.maxSharedSecretLifetime}+ maxSharedSecretViewLimit={currentOrg?.maxSharedSecretViewLimit}+ />+ </DialogBody></DialogContent></Dialog>);diff --git a/frontend/src/pages/pam/PamAccessControlPage/components/AddGroupModal.tsx b/frontend/src/pages/pam/PamAccessControlPage/components/AddGroupModal.tsxindex 8698e9d0d7..d41d338074 100644--- a/frontend/src/pages/pam/PamAccessControlPage/components/AddGroupModal.tsx+++ b/frontend/src/pages/pam/PamAccessControlPage/components/AddGroupModal.tsx@@ -70,7 +70,7 @@ export const AddGroupModal = ({ isOpen, onOpenChange }: Props) => {return (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>Add Group</DialogTitle><DialogDescription>Add an existing organization group.</DialogDescription>diff --git a/frontend/src/pages/pam/PamAccessControlPage/components/AddIdentityModal.tsx b/frontend/src/pages/pam/PamAccessControlPage/components/AddIdentityModal.tsxindex 89154b5c70..f0e6b8b615 100644--- a/frontend/src/pages/pam/PamAccessControlPage/components/AddIdentityModal.tsx+++ b/frontend/src/pages/pam/PamAccessControlPage/components/AddIdentityModal.tsx@@ -81,7 +81,7 @@ export const AddIdentityModal = ({ isOpen, onOpenChange }: Props) => {return (<Dialog open={isOpen} onOpenChange={onOpenChange}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>Add Identity</DialogTitle><DialogDescription>Add an existing organization identity.</DialogDescription>diff --git a/frontend/src/pages/pam/PamAccessControlPage/components/InviteMemberModal.tsx b/frontend/src/pages/pam/PamAccessControlPage/components/InviteMemberModal.tsxindex fd0470b4f6..e4a5101dde 100644--- a/frontend/src/pages/pam/PamAccessControlPage/components/InviteMemberModal.tsx+++ b/frontend/src/pages/pam/PamAccessControlPage/components/InviteMemberModal.tsx@@ -137,7 +137,7 @@ export const InviteMemberModal = ({ isOpen, onOpenChange }: Props) => {onOpenChange(open);}}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>Add Member</DialogTitle><DialogDescription>Add existing organization members.</DialogDescription>diff --git a/frontend/src/pages/pam/PamAccountsPage/components/AssignAccessModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/AssignAccessModal.tsxindex e6b074cdb9..2b294876ed 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/AssignAccessModal.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/AssignAccessModal.tsx@@ -391,7 +391,7 @@ export const AssignAccessModal = ({onOpenChange(open);}}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>{isEdit ? "Edit Access" : "Assign Access"}</DialogTitle></DialogHeader>diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsxindex e3560e17d7..16a794e9da 100644--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx@@ -234,7 +234,7 @@ export const AddMemberModal = ({ popUp, handlePopUpToggle }: Props) => {handlePopUpToggle("addMember", isOpen);}}>- <DialogContent className="overflow-visible sm:max-w-xl">+ <DialogContent className="sm:max-w-xl"><DialogHeader><DialogTitle>{isCertManagerdiff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsxindex fd69baadb8..c50c2f39cb 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx@@ -205,7 +205,7 @@ export const ProjectIdentityDetailsSection = ({open={popUp.editIdentity.isOpen}onOpenChange={(open) => handlePopUpToggle("editIdentity", open)}>- <DialogContent className="max-w-xl overflow-visible">+ <DialogContent className="max-w-xl"><DialogHeader><DialogTitle>Edit Project Identity</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsxindex 3a189d868c..4b08d80f89 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/InviteMembersModal/InviteMembersModal.tsx@@ -155,7 +155,7 @@ export const InviteMembersModal = ({ popUp, handlePopUpToggle }: Props) => {}}><DialogContent- className="overflow-visible sm:max-w-md"+ className="sm:max-w-md"showCloseButton={false}onInteractOutside={(e) => e.preventDefault()}onEscapeKeyDown={(e) => e.preventDefault()}diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/PasteSecretsDialog.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/PasteSecretsDialog.tsxindex 156f3cd34a..877f06529e 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/PasteSecretsDialog.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretDropzone/PasteSecretsDialog.tsx@@ -9,6 +9,7 @@ import {Dialog,DialogContent,DialogDescription,+ DialogFooter,DialogHeader,DialogTitle,TextArea@@ -129,9 +130,11 @@ const PasteSecretsContent = ({ onParsedSecrets, onClose }: ContentProps) => {<FieldError errors={[errors.value]} /></FieldContent></Field>- <Button className="mt-4 ml-auto" variant="project" isDisabled={!isDirty} type="submit">- Parse Secrets- </Button>+ <DialogFooter className="mt-4">+ <Button variant="project" isDisabled={!isDirty} type="submit">+ Parse Secrets+ </Button>+ </DialogFooter></form></>);diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/BulkTagDialog/BulkTagDialog.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/BulkTagDialog/BulkTagDialog.tsxindex 5762273ef5..4c10c67310 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/BulkTagDialog/BulkTagDialog.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/BulkTagDialog/BulkTagDialog.tsx@@ -10,6 +10,7 @@ import {Button,CreatableSelect,Dialog,+ DialogBody,DialogClose,DialogContent,DialogDescription,@@ -258,6 +259,7 @@ const BulkTagDialogContent = ({return (// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions<form+ className="flex min-h-0 min-w-0 flex-1 flex-col gap-4"onSubmit={handleSubmit(onSubmit)}onKeyDown={(e) => {if (e.key === "Enter") e.preventDefault();@@ -271,54 +273,56 @@ const BulkTagDialogContent = ({</DialogDescription></DialogHeader>{selectedResources.length > 0 && (- <Table containerClassName="max-h-[40vh] mt-4 overflow-auto">- <TableHeader className="sticky -top-px z-20 bg-container [&_tr]:border-b-0">- <TableRow>- <TableHead className="sticky left-0 z-20 w-10 max-w-10 min-w-10 border-b-0 bg-container shadow-[inset_0_-1px_0_var(--color-border)]">- Type- </TableHead>- <TableHead className="sticky left-10 z-20 max-w-[30vw] min-w-[30vw] border-b-0 bg-container shadow-[inset_-1px_0_0_var(--color-border),inset_0_-1px_0_var(--color-border)]">- Name- </TableHead>- {visibleEnvs.map((env) => (- <TableHead- key={env.slug}- className="w-32 max-w-32 border-r border-b-0 text-center shadow-[inset_0_-1px_0_var(--color-border)] last:border-r-0"- isTruncatable- >- {env.name}+ <DialogBody className="overflow-hidden">+ <Table containerClassName="max-h-full overflow-auto">+ <TableHeader className="sticky -top-px z-20 bg-container [&_tr]:border-b-0">+ <TableRow>+ <TableHead className="sticky left-0 z-20 w-10 max-w-10 min-w-10 border-b-0 bg-container shadow-[inset_0_-1px_0_var(--color-border)]">+ Type+ </TableHead>+ <TableHead className="sticky left-10 z-20 max-w-[30vw] min-w-[30vw] border-b-0 bg-container shadow-[inset_-1px_0_0_var(--color-border),inset_0_-1px_0_var(--color-border)]">+ Name</TableHead>- ))}- </TableRow>- </TableHeader>- <TableBody>- {selectedResources.map((item) => (- <TableRow key={item.name} className="group">- <TableCell className="sticky left-0 z-10 bg-container transition-colors duration-75 group-hover:bg-container-hover">- <KeyIcon className="size-4 text-secret" />- </TableCell>- <TableCell- className="sticky left-10 z-10 max-w-80 bg-container shadow-[inset_-1px_0_0_var(--color-border)] transition-colors duration-75 group-hover:bg-container-hover"- isTruncatable- >- {item.name}- </TableCell>{visibleEnvs.map((env) => (- <TableCell key={env.slug} className="border-r text-center last:border-r-0">- {item.envSlugs.has(env.slug) ? (- <TagsIcon className="inline-block size-4 text-project" />- ) : (- <span className="text-muted">—</span>- )}- </TableCell>+ <TableHead+ key={env.slug}+ className="w-32 max-w-32 border-r border-b-0 text-center shadow-[inset_0_-1px_0_var(--color-border)] last:border-r-0"+ isTruncatable+ >+ {env.name}+ </TableHead>))}</TableRow>- ))}- </TableBody>- </Table>+ </TableHeader>+ <TableBody>+ {selectedResources.map((item) => (+ <TableRow key={item.name} className="group">+ <TableCell className="sticky left-0 z-10 bg-container transition-colors duration-75 group-hover:bg-container-hover">+ <KeyIcon className="size-4 text-secret" />+ </TableCell>+ <TableCell+ className="sticky left-10 z-10 max-w-80 bg-container shadow-[inset_-1px_0_0_var(--color-border)] transition-colors duration-75 group-hover:bg-container-hover"+ isTruncatable+ >+ {item.name}+ </TableCell>+ {visibleEnvs.map((env) => (+ <TableCell key={env.slug} className="border-r text-center last:border-r-0">+ {item.envSlugs.has(env.slug) ? (+ <TagsIcon className="inline-block size-4 text-project" />+ ) : (+ <span className="text-muted">—</span>+ )}+ </TableCell>+ ))}+ </TableRow>+ ))}+ </TableBody>+ </Table>+ </DialogBody>)}- <div className="flex flex-col gap-4 py-4">+ <div className="flex shrink-0 flex-col gap-4"><Field><FieldLabel>Tags</FieldLabel><FieldContent>diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsxindex 48a823b101..4aa9891297 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SelectionPanel/components/MoveSecretsDialog/MoveSecretsDialog.tsx@@ -1275,7 +1275,7 @@ export const MoveSecretsModal = ({ isOpen, onOpenChange, visibleEnvs, ...props }else onOpenChange(open);}}>- <DialogContent className="max-w-xl overflow-visible [&>*]:min-w-0">+ <DialogContent className="max-w-xl [&>*]:min-w-0"><DialogHeader><DialogTitle>{moveCopy.title}</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsxindex 0bf257a8c7..de1f414d6c 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateSecretImportForm.tsx@@ -420,7 +420,7 @@ export const CreateSecretImportForm = ({return (<Dialog open={isOpen} onOpenChange={handleToggle}>- <DialogContent className="max-w-lg overflow-visible">+ <DialogContent className="max-w-lg"><DialogHeader><DialogTitle>Add Secret Import</DialogTitle><DialogDescription>diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsxindex 7c4624ab0d..9a96d537a0 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/DopplerSecretImportModal.tsx@@ -154,7 +154,7 @@ export const DopplerSecretImportModal = ({onOpenChange(open);}}>- <DialogContent className="max-w-lg overflow-visible" showCloseButton>+ <DialogContent className="max-w-lg" showCloseButton><DialogHeader><DialogTitle>Import from Doppler</DialogTitle><DialogDescription>