improvement: adjust add project button margins

This commit is contained in:
Scott Wilson
2024-11-27 17:54:00 -08:00
parent afdc704423
commit 9df9f4a5da
@@ -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>
); );
}; };