Change to absolute

This commit is contained in:
mickr777
2023-06-02 14:59:10 +10:00
committed by GitHub
parent 8ae1eaaccc
commit 2bdb655375

View File

@ -45,6 +45,7 @@ export default function InvokeButton(props: InvokeButton) {
return (
<Box style={{ flexGrow: 4 }} position="relative">
<Box style={{ position: 'relative' }}>
{iconButton ? (
<IAIIconButton
aria-label={t('parameters.invoke')}
@ -76,7 +77,20 @@ export default function InvokeButton(props: InvokeButton) {
Invoke
</IAIButton>
)}
{!isReady && <ProgressBar />}
{!isReady && (
<Box
style={{
position: 'absolute',
bottom: '0',
left: '0',
right: '0',
zIndex: 1,
}}
>
<ProgressBar />
</Box>
)}
</Box>
</Box>
);
}