Skip to content

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

fix: resolves minor UI issues

towfiqi5b9043dfb10b
diff --git a/frontend/src/components/Plan/PlanItems/PlanItem.module.scss b/frontend/src/components/Plan/PlanItems/PlanItem.module.scss
index 9bc03a0..8e91eb9 100644
--- a/frontend/src/components/Plan/PlanItems/PlanItem.module.scss
+++ b/frontend/src/components/Plan/PlanItems/PlanItem.module.scss
@@ -123,6 +123,10 @@
text-transform: capitalize;
font-style: normal;
margin-left: 5px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 100px;
}
}
diff --git a/frontend/src/components/Plan/PlanItems/PlanItem.tsx b/frontend/src/components/Plan/PlanItems/PlanItem.tsx
index dd62be8..a594e8b 100644
--- a/frontend/src/components/Plan/PlanItems/PlanItem.tsx
+++ b/frontend/src/components/Plan/PlanItems/PlanItem.tsx
@@ -174,7 +174,8 @@ const PlanItem = ({ plan, layout = 'list' }: PlanItemProps) => {
<Icon type="disk" size={14} /> <i>{formatBytes(stats.size)}</i>
</div>
<div className={classes.interval}>
- <Icon type="interval" size={14} /> <i>{planIntervalName(interval)}</i>
+ <Icon type="interval" size={14} />{' '}
+ <i title={interval.type === 'days' ? 'Every ' + interval.days?.replace(/-/g, ', ') : ''}>{planIntervalName(interval)}</i>
</div>
<div
className={classes.time}
diff --git a/frontend/src/utils/plans.ts b/frontend/src/utils/plans.ts
index 1d8d205..752155e 100644
--- a/frontend/src/utils/plans.ts
+++ b/frontend/src/utils/plans.ts
@@ -13,7 +13,7 @@ export function planIntervalName(interval: PlanInterval): string {
case 'monthly':
return 'Every Month';
case 'days':
- return `Every ${interval.days}`;
+ return `Every Few Days`;
case 'hours':
return `Every ${interval.hours}`;
case 'minutes':