Skip to content

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

fix: handle overflow for single line text diffs

Scott Wilsonff9ec7bbd743
diff --git a/frontend/src/components/secrets/diff/DiffContainer.tsx b/frontend/src/components/secrets/diff/DiffContainer.tsx
index 071b1cb0e8..027cd9a443 100644
--- a/frontend/src/components/secrets/diff/DiffContainer.tsx
+++ b/frontend/src/components/secrets/diff/DiffContainer.tsx
@@ -22,14 +22,14 @@ export const DiffContainer = ({
return (
<div
className={twMerge(
- "relative rounded-md border border-border p-2",
+ "relative overflow-x-auto thin-scrollbar rounded-md border border-border p-2",
"bg-bunker-800/60",
variant && variant === "added" && "border-success/45",
variant && variant === "removed" && "border-danger/45",
className
)}
>
- {children}
+ <div className="w-max min-w-full">{children}</div>
</div>
);
}