Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceb65e1

Browse files
committed
fix: update vertical padding for card wrapper
1 parent aea9345 commit ceb65e1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

plugins/backstage-plugin-coder/src/components/CoderAuthFormCardWrapper/CoderAuthFormCardWrapper.tsx

+12-1
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,25 @@ import {
55
type CoderAuthFormProps,
66
CoderAuthForm,
77
} from '../CoderAuthForm/CoderAuthForm';
8+
import { makeStyles } from '@material-ui/core';
89

910
type Props = A11yInfoCardProps & CoderAuthFormProps;
1011

12+
const useStyles = makeStyles(theme => ({
13+
root: {
14+
paddingTop: theme.spacing(6),
15+
paddingBottom: theme.spacing(6),
16+
},
17+
}));
18+
1119
export function CoderAuthFormCardWrapper({
1220
children,
1321
headerContent,
1422
descriptionId,
1523
...delegatedCardProps
1624
}: Props) {
1725
const { isAuthenticated } = useInternalCoderAuth();
26+
const styles = useStyles();
1827

1928
return (
2029
<A11yInfoCard
@@ -28,7 +37,9 @@ export function CoderAuthFormCardWrapper({
2837
{isAuthenticated ? (
2938
<>{children}</>
3039
) : (
31-
<CoderAuthForm descriptionId={descriptionId} />
40+
<div className={styles.root}>
41+
<CoderAuthForm descriptionId={descriptionId} />
42+
</div>
3243
)}
3344
</A11yInfoCard>
3445
);

0 commit comments

Comments
 (0)