Skip to content

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

fix(frontend): handle name/slug truncation on project roles table

Scott Wilsonf7908001f390
diff --git a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
index cd76677f0d..55339f65c6 100644
--- a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
@@ -193,7 +193,7 @@ export const ProjectRoleList = () => {
<Table>
<THead>
<Tr>
- <Th>
+ <Th className="w-1/3">
<div className="flex items-center">
Name
<IconButton
@@ -206,7 +206,7 @@ export const ProjectRoleList = () => {
</IconButton>
</div>
</Th>
- <Th>
+ <Th className="w-1/3">
<div className="flex items-center">
Slug
<IconButton
@@ -257,8 +257,8 @@ export const ProjectRoleList = () => {
})
}
>
- <Td>{name}</Td>
- <Td>{slug}</Td>
+ <Td className="max-w-0 truncate">{name}</Td>
+ <Td className="max-w-0 truncate">{slug}</Td>
<Td>
<Badge variant="ghost">
{isCustomProjectRole(slug) ? (