mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
improvement: adjust add project button margins
This commit is contained in:
@@ -27,12 +27,11 @@ const ProjectsMenu = ({ children, ...props }: MenuProps<TWorkspaceWithFaveProp>)
|
|||||||
return (
|
return (
|
||||||
<components.Menu {...props}>
|
<components.Menu {...props}>
|
||||||
{children}
|
{children}
|
||||||
<div className=" m-2 mt-0 ">
|
|
||||||
<hr className="mb-2 h-px border-0 bg-mineshaft-500" />
|
<hr className="mb-2 h-px border-0 bg-mineshaft-500" />
|
||||||
<OrgPermissionCan I={OrgPermissionActions.Create} a={OrgPermissionSubjects.Workspace}>
|
<OrgPermissionCan I={OrgPermissionActions.Create} a={OrgPermissionSubjects.Workspace}>
|
||||||
{(isAllowed) => (
|
{(isAllowed) => (
|
||||||
<Button
|
<Button
|
||||||
className="w-full bg-mineshaft-700 py-2 text-bunker-200"
|
className="w-full bg-mineshaft-700 pt-2 text-bunker-200"
|
||||||
colorSchema="primary"
|
colorSchema="primary"
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
size="xs"
|
size="xs"
|
||||||
@@ -44,7 +43,6 @@ const ProjectsMenu = ({ children, ...props }: MenuProps<TWorkspaceWithFaveProp>)
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</OrgPermissionCan>
|
</OrgPermissionCan>
|
||||||
</div>
|
|
||||||
</components.Menu>
|
</components.Menu>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user