ui: align cleanup retention controls

This commit is contained in:
Arunavo Ray
2025-10-22 14:49:09 +05:30
parent df644be769
commit b21cd0b866

View File

@@ -279,6 +279,7 @@ export function AutomationSettings({
</Tooltip> </Tooltip>
</TooltipProvider> </TooltipProvider>
</Label> </Label>
<div className="flex items-center gap-3 mt-1.5">
<Select <Select
value={cleanupConfig.retentionDays.toString()} value={cleanupConfig.retentionDays.toString()}
onValueChange={(value) => onValueChange={(value) =>
@@ -288,7 +289,7 @@ export function AutomationSettings({
}) })
} }
> >
<SelectTrigger id="retention-period" className="mt-1.5"> <SelectTrigger id="retention-period" className="w-40">
<SelectValue /> <SelectValue />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
@@ -302,11 +303,10 @@ export function AutomationSettings({
))} ))}
</SelectContent> </SelectContent>
</Select> </Select>
{cleanupConfig.enabled && ( <p className="text-xs text-muted-foreground">
<p className="text-xs text-muted-foreground mt-1">
Cleanup runs {getCleanupFrequencyText(cleanupConfig.retentionDays)} Cleanup runs {getCleanupFrequencyText(cleanupConfig.retentionDays)}
</p> </p>
)} </div>
</div> </div>
</div> </div>