Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: Minor UI issues.

towfiqide587ab040d8
diff --git a/frontend/src/components/Device/DeviceCPU/DeviceCPU.tsx b/frontend/src/components/Device/DeviceCPU/DeviceCPU.tsx
index 94a11c8..eaa0477 100644
--- a/frontend/src/components/Device/DeviceCPU/DeviceCPU.tsx
+++ b/frontend/src/components/Device/DeviceCPU/DeviceCPU.tsx
@@ -11,6 +11,7 @@ const DeviceCPU = ({ cpu }: DeviceCPUProps) => {
const processorIcon = getProcessorIcon(cpu.manufacturer);
const cpuPercent = cpu.load?.currentLoad ? Math.round(cpu.load?.currentLoad) : 0;
+ const cpuName = cpu.manufacturer && cpu.brand ? `${cpu.manufacturer} ${cpu.brand}` : 'Unknown';
return (
<div className={`${classes.widget} ${classes.cpu}`}>
@@ -24,7 +25,7 @@ const DeviceCPU = ({ cpu }: DeviceCPUProps) => {
</div>
<div className={classes.infoBlockRight}>
<span>Processor</span>
- <span title={`${cpu.manufacturer} ${cpu.brand}`}>{`${cpu.manufacturer} ${cpu.brand}`}</span>
+ <span title={cpuName}>{cpuName}</span>
</div>
</div>
<div className={classes.infoBlock}>
diff --git a/frontend/src/components/Device/DeviceMemory/DeviceMemory.tsx b/frontend/src/components/Device/DeviceMemory/DeviceMemory.tsx
index a853726..e5d3622 100644
--- a/frontend/src/components/Device/DeviceMemory/DeviceMemory.tsx
+++ b/frontend/src/components/Device/DeviceMemory/DeviceMemory.tsx
@@ -24,7 +24,7 @@ const DeviceMemory = ({ memory }: DeviceMemoryProps) => {
});
const sortedGroups = Object.entries(memoryGroups).sort((a, b) => b[1] - a[1]);
const primaryGroup = sortedGroups[0];
- const mainText = `${primaryGroup[1]}x ${primaryGroup[0] || 'Unknown'}`;
+ const mainText = `${primaryGroup[1] || 1}x ${primaryGroup[0] || 'Unknown'}`;
const remainingCount = sortedGroups.slice(1).reduce((sum, group) => sum + group[1], 0);
if (remainingCount > 0) {
diff --git a/frontend/src/components/Plan/PlanForm/PlanForm.tsx b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
index d40b43e..e1f2a20 100644
--- a/frontend/src/components/Plan/PlanForm/PlanForm.tsx
+++ b/frontend/src/components/Plan/PlanForm/PlanForm.tsx
@@ -210,13 +210,15 @@ const PlanForm = ({ title, planSettings, type, onPlanSettingsChange, onSubmit, i
)}
{step === 3 && (
<div className={PFClasses.planStep}>
- <IntervalField
- label="Backup Interval*"
- fieldValue={planSettings.settings.interval}
- onUpdate={(intervalSettings) =>
- onPlanSettingsChange({ ...planSettings, settings: { ...planSettings.settings, interval: intervalSettings } })
- }
- />
+ <div className={classes.field} style={{ width: '150px' }}>
+ <IntervalField
+ label="Backup Interval*"
+ fieldValue={planSettings.settings.interval}
+ onUpdate={(intervalSettings) =>
+ onPlanSettingsChange({ ...planSettings, settings: { ...planSettings.settings, interval: intervalSettings } })
+ }
+ />
+ </div>
<div className={classes.field} style={{ width: '150px' }}>
<NumberInput