mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improvements: truncate environment selection and only show visualize access when expanded
This commit is contained in:
@@ -182,7 +182,7 @@ const AccessTreeContent = ({ permissions, subject, onClose }: AccessTreeProps) =
|
||||
<Select
|
||||
value={environment}
|
||||
onValueChange={accessTreeData.setEnvironment}
|
||||
className="w-44"
|
||||
className="w-60"
|
||||
position="popper"
|
||||
dropdownContainerClassName="max-w-none"
|
||||
aria-label="Environment"
|
||||
@@ -193,7 +193,7 @@ const AccessTreeContent = ({ permissions, subject, onClose }: AccessTreeProps) =
|
||||
value={env.slug}
|
||||
className="relative py-2 pl-6 pr-8 text-sm hover:bg-mineshaft-700"
|
||||
>
|
||||
<div className="ml-3 font-medium">{env.name}</div>
|
||||
<div className="ml-3 truncate font-medium">{env.name}</div>
|
||||
</SelectItem>
|
||||
))}
|
||||
</Select>
|
||||
|
||||
@@ -146,7 +146,7 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
|
||||
</Tag>
|
||||
</div>
|
||||
)}
|
||||
{onShowAccessTree && (
|
||||
{isOpen && onShowAccessTree && (
|
||||
<Button
|
||||
leftIcon={<FontAwesomeIcon icon={faDiagramProject} />}
|
||||
variant="outline_bg"
|
||||
|
||||
Reference in New Issue
Block a user