Update NodeInvokeButton.tsx

This commit is contained in:
mickr777 2023-07-02 15:06:32 +10:00 committed by GitHub
parent 72d64513d0
commit 45a551125d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,21 +43,6 @@ export default function NodeInvokeButton(props: InvokeButton) {
return (
<Box style={{ flexGrow: 4 }} position="relative">
<Box style={{ position: 'relative' }}>
{!isReady && (
<Box
style={{
position: 'absolute',
bottom: '0',
left: '0',
right: '0',
height: '100%',
overflow: 'clip',
borderRadius: 4,
}}
>
<ProgressBar />
</Box>
)}
{iconButton ? (
<IAIIconButton
aria-label={t('parameters.invoke')}
@ -89,6 +74,20 @@ export default function NodeInvokeButton(props: InvokeButton) {
Invoke
</IAIButton>
)}
{!isReady && (
<Box
style={{
position: 'absolute',
bottom: '0',
left: '0',
right: '0',
height: '15%',
overflow: 'clip',
}}
>
<ProgressBar />
</Box>
)}
</Box>
</Box>
);