diff --git a/frontend/src/component/common/PermissionButton/PermissionButton.tsx b/frontend/src/component/common/PermissionButton/PermissionButton.tsx index 9a1b5078920c..1286590f918c 100644 --- a/frontend/src/component/common/PermissionButton/PermissionButton.tsx +++ b/frontend/src/component/common/PermissionButton/PermissionButton.tsx @@ -1,4 +1,4 @@ -import { Button, type ButtonProps } from '@mui/material'; +import { Button, styled, type ButtonProps } from '@mui/material'; import Lock from '@mui/icons-material/Lock'; import React from 'react'; import { @@ -12,6 +12,11 @@ import { useHasProjectEnvironmentAccess, } from 'hooks/useHasAccess'; +const StyledButton = styled(Button)({ + justifySelf: 'start', + alignSelf: 'start', +}); + export interface IPermissionButtonProps extends Omit { permission: string | string[]; onClick?: (e: any) => void; @@ -104,7 +109,7 @@ const BasePermissionButton = React.forwardRef< title={formatAccessText(access, tooltipProps?.title)} arrow > - + ); }, diff --git a/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.tsx.snap b/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.tsx.snap index 56195a34a98f..557164a85119 100644 --- a/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.tsx.snap +++ b/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.tsx.snap @@ -75,7 +75,7 @@ exports[`renders an empty list correctly 1`] = ` />