make sure progress bar is visible (#142699)

This commit is contained in:
Joe Reuter 2022-10-06 11:06:24 +02:00 committed by GitHub
parent 61630e32fd
commit bf6a55db1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,9 @@ export function ReactExpressionRenderer({
return (
<div {...dataAttrs} className={classes}>
{isEmpty && <EuiLoadingChart mono size="l" />}
{isLoading && <EuiProgress size="xs" color="accent" position="absolute" />}
{isLoading && (
<EuiProgress size="xs" color="accent" position="absolute" style={{ zIndex: 1 }} />
)}
{!isLoading && error && renderError?.(error.message, error)}
<div className="expExpressionRenderer__expression" style={expressionStyles} ref={nodeRef} />
</div>