Merge branch 'dvh' into 'develop'
d-screen: fall back to h-screen See merge request soapbox-pub/soapbox-fe!1447
This commit is contained in:
commit
ff7753cb42
2 changed files with 5 additions and 2 deletions
|
@ -10,10 +10,11 @@ const LoadingScreen: React.FC = () => {
|
||||||
<LandingGradient />
|
<LandingGradient />
|
||||||
|
|
||||||
<div className='fixed d-screen w-screen flex items-center justify-center z-10'>
|
<div className='fixed d-screen w-screen flex items-center justify-center z-10'>
|
||||||
{/* Bump up spinner vertically to counteract optical illusion. */}
|
<div className='p-4'>
|
||||||
<Spinner size={40} withText={false} />
|
<Spinner size={40} withText={false} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.d-screen {
|
.d-screen {
|
||||||
|
height: 100vh; // Backwards compatibility
|
||||||
|
/* stylelint-disable-next-line unit-no-unknown */
|
||||||
height: 100dvh;
|
height: 100dvh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue