Add Progress bar under invoke Button

Find on some screens the progress bar at top of screen gets cut off
This commit is contained in:
mickr777 2023-06-02 14:19:02 +10:00 committed by GitHub
parent d66979073b
commit 8ae1eaaccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ import { useCallback } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
import { useTranslation } from 'react-i18next';
import { FaPlay } from 'react-icons/fa';
import ProgressBar from 'features/system/components/ProgressBar';
interface InvokeButton
extends Omit<IAIButtonProps | IAIIconButtonProps, 'aria-label'> {
@ -43,7 +44,7 @@ export default function InvokeButton(props: InvokeButton) {
);
return (
<Box style={{ flexGrow: 4 }}>
<Box style={{ flexGrow: 4 }} position="relative">
{iconButton ? (
<IAIIconButton
aria-label={t('parameters.invoke')}
@ -75,6 +76,7 @@ export default function InvokeButton(props: InvokeButton) {
Invoke
</IAIButton>
)}
{!isReady && <ProgressBar />}
</Box>
);
}