Skip to content

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

fix(secret-share): wrap long secret values instead of overflowing

Claude73450ac14700
diff --git a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
index b949f7a49c..4eb86b4030 100644
--- a/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/components/RequestSecret/RevealSecretValueModal.tsx
@@ -32,7 +32,7 @@ const Content = ({ secretValue, onClose }: ContentProps) => {
return (
<>
<div className="relative flex items-start justify-between rounded-md border border-border bg-container p-2 pr-5 pl-3 text-base text-label">
- <p className="mr-4 max-h-128 thin-scrollbar overflow-y-auto break-all">{secretValue}</p>
+ <p className="min-w-0 mr-4 max-h-128 thin-scrollbar overflow-y-auto break-all">{secretValue}</p>
<Tooltip>
<TooltipTrigger asChild>
<IconButton
diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx
index d054eecf4f..2368ef55f9 100644
--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx
+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx
@@ -50,7 +50,7 @@ export const SecretContainer = ({ secret, brandingTheme }: Props) => {
}`}
style={secretDisplayStyle}
>
- <p className="break-all whitespace-pre-wrap">
+ <p className="min-w-0 break-all whitespace-pre-wrap">
{isVisible ? secret.secretValue : hiddenSecret}
</p>
<div className="ml-1 flex">