mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-17 03:43:46 +03:00
ui: align cleanup retention controls
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user