1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

ui: fix spinner z-index (#3520)

This commit is contained in:
Matthew Penner 2021-08-03 20:46:00 -06:00 committed by GitHub
parent 970f281859
commit 1c071b05aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,10 +14,10 @@ const SpinnerOverlay: React.FC<Props> = ({ size, fixed, visible, backgroundOpaci
<Fade timeout={150} in={visible} unmountOnExit>
<div
css={[
tw`top-0 left-0 flex items-center justify-center w-full h-full rounded flex-col`,
tw`top-0 left-0 flex items-center justify-center w-full h-full rounded flex-col z-40`,
!fixed ? tw`absolute` : tw`fixed`,
]}
style={{ zIndex: 9999, background: `rgba(0, 0, 0, ${backgroundOpacity || 0.45})` }}
style={{ background: `rgba(0, 0, 0, ${backgroundOpacity || 0.45})` }}
>
<Spinner size={size}/>
{children && (typeof children === 'string' ? <p css={tw`mt-4 text-neutral-400`}>{children}</p> : children)}