Skip to content

Commit c19169d

Browse files
authored
Merge pull request #37 from delegateas/copilot/fix-36
Fix horizontal scrollbar on security roles with long names
2 parents fd54581 + 1014fb4 commit c19169d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Website/components/entity/SecurityRoles.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { HybridTooltip, HybridTooltipContent, HybridTooltipTrigger } from "../ui
66

77
export function SecurityRoles({ roles }: { roles: SecurityRole[] }) {
88
return (
9-
<div className="flex flex-col gap-2 w-full overflow-x-auto">
9+
<div className="flex flex-col gap-2 w-full">
1010
{roles.map(role => (
1111
<SecurityRoleRow key={role.Name} role={role} />
1212
))}
@@ -17,8 +17,8 @@ export function SecurityRoles({ roles }: { roles: SecurityRole[] }) {
1717
function SecurityRoleRow({ role }: { role: SecurityRole }) {
1818
return (
1919
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2 bg-gray-50 rounded-lg p-4 border border-gray-100 w-full min-w-[320px]">
20-
<p className="font-bold text-base text-wrap truncate max-w-full sm:max-w-[180px] md:max-w-[240px]">{role.Name}</p>
21-
<div className="flex flex-wrap sm:flex-nowrap gap-2 align-bottom overflow-x-auto">
20+
<p className="font-bold text-base text-wrap max-w-full sm:max-w-[180px] md:max-w-[240px]">{role.Name}</p>
21+
<div className="flex flex-wrap sm:flex-nowrap gap-2 align-bottom">
2222
<PrivilegeIcon name="Create" depth={role.Create} />
2323
<PrivilegeIcon name="Read" depth={role.Read} />
2424
<PrivilegeIcon name="Write" depth={role.Write} />

0 commit comments

Comments
 (0)