Skip to content

Commit 1c071b0

Browse files
authored
ui: fix spinner z-index (pterodactyl#3520)
1 parent 970f281 commit 1c071b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/scripts/components/elements/SpinnerOverlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const SpinnerOverlay: React.FC<Props> = ({ size, fixed, visible, backgroundOpaci
1414
<Fade timeout={150} in={visible} unmountOnExit>
1515
<div
1616
css={[
17-
tw`top-0 left-0 flex items-center justify-center w-full h-full rounded flex-col`,
17+
tw`top-0 left-0 flex items-center justify-center w-full h-full rounded flex-col z-40`,
1818
!fixed ? tw`absolute` : tw`fixed`,
1919
]}
20-
style={{ zIndex: 9999, background: `rgba(0, 0, 0, ${backgroundOpacity || 0.45})` }}
20+
style={{ background: `rgba(0, 0, 0, ${backgroundOpacity || 0.45})` }}
2121
>
2222
<Spinner size={size}/>
2323
{children && (typeof children === 'string' ? <p css={tw`mt-4 text-neutral-400`}>{children}</p> : children)}

0 commit comments

Comments
 (0)