Skip to content

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

improvement: add menu indicator to value input when focused

Scott Wilsona51870e869cc
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
index ad6164e7e4..cab64fb014 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
@@ -935,7 +935,7 @@ export const SecretEditTableRow = ({
)}
/>
</div>
- {!isDirtyState && (
+ {!isDirtyState && !isFieldFocused && (
<div className="flex w-fit items-start justify-end self-start pl-2">
<div className="flex items-center gap-1">
{comment && !isImportedSecret && (
@@ -1053,10 +1053,15 @@ export const SecretEditTableRow = ({
!isBatchMode
) && (
<div
- className="absolute top-0 right-0 bottom-0 z-10 w-10"
+ className={twMerge(
+ "absolute top-0 bottom-0 z-10 flex w-8 cursor-pointer items-start justify-center",
+ isSingleEnvView ? "right-0 pt-[11px] pr-[6px]" : "-right-3 pt-[8px] pr-[12px]"
+ )}
onMouseEnter={() => setIsHoveringActionZone(true)}
onMouseLeave={() => setIsHoveringActionZone(false)}
- />
+ >
+ <EllipsisIcon className="animate-fade-in text-muted-foreground/40 size-4" />
+ </div>
)}
{!(
isDirty &&
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretOverrideRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretOverrideRow.tsx
index 7a9730025f..984603574a 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretOverrideRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretOverrideRow.tsx
@@ -1,7 +1,15 @@
import { useCallback, useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { subject } from "@casl/ability";
-import { CopyIcon, EditIcon, GitBranchIcon, SaveIcon, TrashIcon, Undo2Icon } from "lucide-react";
+import {
+ CopyIcon,
+ EditIcon,
+ EllipsisIcon,
+ GitBranchIcon,
+ SaveIcon,
+ TrashIcon,
+ Undo2Icon
+} from "lucide-react";
import { twMerge } from "tailwind-merge";
import { createNotification } from "@app/components/notifications";
@@ -268,10 +276,15 @@ export const SecretOverrideRow = ({
)}
{isOverrideFieldFocused && !isDirty && (
<div
- className="absolute top-0 right-0 bottom-0 z-10 w-10"
+ className={twMerge(
+ "absolute top-0 bottom-0 z-10 flex w-8 cursor-pointer items-start justify-center",
+ isSingleEnvView ? "-right-4 pt-[8px] pr-[2px]" : "-right-[18px] pt-[8px] pr-[12px]"
+ )}
onMouseEnter={() => setIsHoveringActionZone(true)}
onMouseLeave={() => setIsHoveringActionZone(false)}
- />
+ >
+ <EllipsisIcon className="animate-fade-in text-muted-foreground/40 size-4" />
+ </div>
)}
{!isDirty && (
<div