fix: center certificates vertically when viewed on large scree… (#37427)
* fix: center certificates vertically when viewed on large screens * adjust alignment for all screen sizes * change height to min-height
This commit is contained in:
@ -104,6 +104,7 @@ class ShowCertification extends Component {
|
|||||||
completionTime
|
completionTime
|
||||||
} = cert;
|
} = cert;
|
||||||
return (
|
return (
|
||||||
|
<div className='certificate-outer-wrapper'>
|
||||||
<Grid className='certificate-wrapper certification-namespace'>
|
<Grid className='certificate-wrapper certification-namespace'>
|
||||||
<Row>
|
<Row>
|
||||||
<header>
|
<header>
|
||||||
@ -167,6 +168,7 @@ class ShowCertification extends Component {
|
|||||||
</footer>
|
</footer>
|
||||||
</Row>
|
</Row>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,13 @@
|
|||||||
font-family: 'Sax Mono', monospace;
|
font-family: 'Sax Mono', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* center the certificate vertically */
|
||||||
|
.certificate-outer-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
.certification-namespace header {
|
.certification-namespace header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 140px;
|
height: 140px;
|
||||||
|
Reference in New Issue
Block a user