frontend: Hotfix Loader height

This commit is contained in:
Divlo 2020-03-21 18:36:57 +01:00
parent ea13959c91
commit c7115144bf

View File

@ -15,7 +15,7 @@ const FunctionCard = forwardRef((props, ref) => {
<Link href={`/functions/${props.slug}`}>
<Fragment>
{/* Elément à une hauteur pendant chargement */}
<div ref={ref} style={isLoading ? { height: "200px", justifyContent: "center" } : null} className={"FunctionCard col-sm-24 col-md-10 col-xl-7"}>
<div ref={ref} style={isLoading ? { height: "360px", justifyContent: "center" } : null} className={"FunctionCard col-sm-24 col-md-10 col-xl-7"}>
{isLoading && <Loader width="125px" height="125px" />}
<div className={`FunctionCard__container ${isLoading ? "d-none" : ""}`}>
<div className="FunctionCard__top">