Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(agent-vault): keep the lifted icon stack to the width of its chips
Scott Wilson8daf87c4be5e
diff --git a/frontend/src/components/agent-vault/ServiceIconStack.tsx b/frontend/src/components/agent-vault/ServiceIconStack.tsxindex ef347c4ac2..7f2066231b 100644--- a/frontend/src/components/agent-vault/ServiceIconStack.tsx+++ b/frontend/src/components/agent-vault/ServiceIconStack.tsx@@ -99,8 +99,12 @@ export const ServiceIconStack = ({ hostPatterns, maxVisible = 4, className }: Pr// The leftmost chip has to paint on top, and flex-row-reverse cannot do it: reversing the// direction moves a chip visually and its paint order follows, so the right edge wins either// way. `isolate` confines these depths to the stack, which also traps the chips below a linked- // row's overlay, so the stack itself is marked interactive for RowLink to lift it.- <div data-row-interactive className={cn("isolate flex items-center -space-x-1.5", className)}>+ // row's overlay, so the stack itself is marked interactive for RowLink to lift it. `w-fit` keeps the+ // lifted area to the chips, so the rest of the cell still opens the row.+ <div+ data-row-interactive+ className={cn("isolate flex w-fit items-center -space-x-1.5", className)}+ >{/* A screen reader never opens the hover tooltips, so it reads the names here. First, since thespacing puts a negative margin on every child but the last, and the last has to stay a chip. */}<span className="sr-only">{icons.map((icon) => icon.label).join(", ")}</span>