summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/PluginInstallModal.tsx
diff options
context:
space:
mode:
authorDavid Beall <beallio@users.noreply.github.com>2026-08-02 14:26:12 -0700
committerGitHub <noreply@github.com>2026-08-02 17:26:12 -0400
commitb4b8be3297e427dad6fbc6697ffdb765a796f7fd (patch)
treee69393cf2748df50a08c2128e7d20c9df542b0c5 /frontend/src/components/modals/PluginInstallModal.tsx
parent3e4302e2e58f39d6289d95a64edbb931f3831668 (diff)
downloaddecky-loader-b4b8be3297e427dad6fbc6697ffdb765a796f7fd.tar.gz
decky-loader-b4b8be3297e427dad6fbc6697ffdb765a796f7fd.zip
fix: align plugin install progress (#944)HEADmain
Co-authored-by: David Beall <6121439+beallio@users.noreply.github.com>
Diffstat (limited to 'frontend/src/components/modals/PluginInstallModal.tsx')
-rw-r--r--frontend/src/components/modals/PluginInstallModal.tsx16
1 files changed, 4 insertions, 12 deletions
diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx
index 0075fce5..012d0982 100644
--- a/frontend/src/components/modals/PluginInstallModal.tsx
+++ b/frontend/src/components/modals/PluginInstallModal.tsx
@@ -1,8 +1,9 @@
-import { ConfirmModal, Navigation, ProgressBarWithInfo, QuickAccessTab } from '@decky/ui';
+import { ConfirmModal, Navigation, QuickAccessTab } from '@decky/ui';
import { FC, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { InstallType, InstallTypeTranslationMapping } from '../../plugin';
+import PluginInstallProgress from './PluginInstallProgress';
interface PluginInstallModalProps {
artifact: string;
@@ -66,7 +67,7 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({
await onCancel();
}}
strTitle={
- <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%' }}>
+ <div>
{
// IMPORTANT! These comments are not cosmetic and are needed for `extracttext` task to work
// t('PluginInstallModal.install.title')
@@ -76,16 +77,6 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({
// t('PluginInstallModal.overwrite.title')
t(`PluginInstallModal.${installTypeTranslationKey}.title`, { artifact: artifact })
}
- {loading && (
- <div style={{ marginLeft: 'auto' }}>
- <ProgressBarWithInfo
- layout="inline"
- bottomSeparator="none"
- nProgress={percentage}
- sOperationText={downloadInfo}
- />
- </div>
- )}
</div>
}
strOKButtonText={
@@ -128,6 +119,7 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({
}
</div>
{hash == 'False' && <span style={{ color: 'red' }}>{t('PluginInstallModal.no_hash')}</span>}
+ {loading && <PluginInstallProgress percentage={percentage} operationText={downloadInfo} />}
</ConfirmModal>
);
};