Skip to content

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

improvements: adjust secret search padding when no clear icon and fix access approval reviewer tooltips

Scott Wilson4f26365c2121
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/SecretSearchInput.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/SecretSearchInput.tsx
index 9a69bfb9cd..95a4940415 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/SecretSearchInput.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/SecretSearchInput.tsx
@@ -52,8 +52,15 @@ export const SecretSearchInput = ({
if (activeIndex === 0 && e.key === "Enter") setIsOpen(true);
}}
autoComplete="off"
- className="input text-md h-[2.3rem] w-full rounded-md rounded-l-none bg-mineshaft-800 py-[0.375rem] pl-2.5 pr-8 text-gray-400 placeholder-mineshaft-50 placeholder-opacity-50 outline-none duration-200 placeholder:text-sm hover:ring-bunker-400/60 focus:bg-mineshaft-700/80 focus:ring-1 focus:ring-primary-400/50"
- placeholder="Search by secret, folder, tag or metadata..."
+ className={twMerge(
+ "input text-md h-[2.3rem] w-full rounded-md rounded-l-none bg-mineshaft-800 py-[0.375rem] pl-2.5 text-gray-400 placeholder-mineshaft-50 placeholder-opacity-50 outline-none duration-200 placeholder:text-sm hover:ring-bunker-400/60 focus:bg-mineshaft-700/80 focus:ring-1 focus:ring-primary-400/50",
+ hasSearch ? "pr-8" : "pr-2.5"
+ )}
+ placeholder={
+ isSingleEnv
+ ? "Search by secret, folder, tag or metadata..."
+ : "Search by secret or folder name..."
+ }
value={value}
onChange={(e) => onChange(e.target.value)}
/>
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChanges.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChanges.tsx
index de11739ae5..0f2b002996 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChanges.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/SecretApprovalRequest/components/SecretApprovalRequestChanges.tsx
@@ -538,16 +538,20 @@ export const SecretApprovalRequestChanges = ({
className="flex flex-nowrap items-center justify-between space-x-2 rounded border border-mineshaft-600 bg-mineshaft-800 px-2 py-1"
key={`required-approver-${requiredApprover.userId}`}
>
- <div className="flex text-sm">
- <Tooltip
- content={`${requiredApprover.firstName || ""} ${
- requiredApprover.lastName || ""
- }`}
- >
- <span>{requiredApprover?.email}</span>
- </Tooltip>
- <span className="text-red">*</span>
- </div>
+ <Tooltip
+ content={
+ requiredApprover.firstName
+ ? `${requiredApprover.firstName || ""} ${requiredApprover.lastName || ""}`
+ : undefined
+ }
+ position="left"
+ sideOffset={10}
+ >
+ <div className="flex text-sm">
+ <div>{requiredApprover?.email}</div>
+ <span className="text-red">*</span>
+ </div>
+ </Tooltip>
<div>
{reviewer?.comment && (
<Tooltip className="max-w-lg break-words" content={reviewer.comment}>