summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/PluginInstallProgress.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/PluginInstallProgress.tsx
parent3e4302e2e58f39d6289d95a64edbb931f3831668 (diff)
downloaddecky-loader-main.tar.gz
decky-loader-main.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/PluginInstallProgress.tsx')
-rw-r--r--frontend/src/components/modals/PluginInstallProgress.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/frontend/src/components/modals/PluginInstallProgress.tsx b/frontend/src/components/modals/PluginInstallProgress.tsx
new file mode 100644
index 00000000..14fe9f34
--- /dev/null
+++ b/frontend/src/components/modals/PluginInstallProgress.tsx
@@ -0,0 +1,31 @@
+import { Field, ProgressBar } from '@decky/ui';
+import { FC } from 'react';
+
+interface PluginInstallProgressProps {
+ percentage: number;
+ operationText: string | null;
+}
+
+const PluginInstallProgress: FC<PluginInstallProgressProps> = ({ percentage, operationText }) => {
+ return (
+ <div style={{ width: '100%', margin: '16px 0 0' }}>
+ <Field bottomSeparator="none" childrenLayout="below" focusable={false} padding="standard">
+ <div style={{ width: '100%' }}>
+ <div
+ style={{
+ minHeight: '22px',
+ width: '100%',
+ textAlign: 'left',
+ textTransform: 'uppercase',
+ }}
+ >
+ {operationText}
+ </div>
+ <ProgressBar focusable={false} nProgress={percentage} />
+ </div>
+ </Field>
+ </div>
+ );
+};
+
+export default PluginInstallProgress;