Skip to content

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

fix(secrets): keep Overview folder row link inside its row in Safari (#9126)

Adilson Junior338f2d37d74a
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderTableRow/FolderTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/FolderTableRow/FolderTableRow.tsx
index 96653281fa..040aab90ea 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderTableRow/FolderTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderTableRow/FolderTableRow.tsx
@@ -98,6 +98,7 @@ export const FolderTableRow = ({
: "sticky left-0 z-10 bg-container transition-colors duration-75 group-hover:bg-container-hover",
pendingActionBorderClass(pendingAction)
)}
+ onClick={isNavigationDisabled ? undefined : () => onClick(folderName)}
>
<div className="flex h-full items-center justify-center [&>svg]:size-4">
<Checkbox
@@ -123,12 +124,14 @@ export const FolderTableRow = ({
/>
</div>
</TableCell>
+ {/* Safari ignores position: relative on <tr>, so this cell must be positioned (relative or
+ sticky) or the RowLink overlay spans the whole table and swallows clicks on other rows. */}
<TableCell
isTruncatable
colSpan={isSingleEnvView ? 2 : undefined}
className={
isSingleEnvView
- ? "transition-all duration-75"
+ ? "relative transition-all duration-75"
: "sticky left-10 z-10 border-r bg-container transition-all duration-75 group-hover:bg-container-hover"
}
>