mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 08:26:29 +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
|
<Select
|
||||||
value={environment}
|
value={environment}
|
||||||
onValueChange={accessTreeData.setEnvironment}
|
onValueChange={accessTreeData.setEnvironment}
|
||||||
className="w-44"
|
className="w-60"
|
||||||
position="popper"
|
position="popper"
|
||||||
dropdownContainerClassName="max-w-none"
|
dropdownContainerClassName="max-w-none"
|
||||||
aria-label="Environment"
|
aria-label="Environment"
|
||||||
@@ -193,7 +193,7 @@ const AccessTreeContent = ({ permissions, subject, onClose }: AccessTreeProps) =
|
|||||||
value={env.slug}
|
value={env.slug}
|
||||||
className="relative py-2 pl-6 pr-8 text-sm hover:bg-mineshaft-700"
|
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>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
|
|||||||
+1
-1
@@ -146,7 +146,7 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
|
|||||||
</Tag>
|
</Tag>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{onShowAccessTree && (
|
{isOpen && onShowAccessTree && (
|
||||||
<Button
|
<Button
|
||||||
leftIcon={<FontAwesomeIcon icon={faDiagramProject} />}
|
leftIcon={<FontAwesomeIcon icon={faDiagramProject} />}
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
|
|||||||
Reference in New Issue
Block a user