ux: show exact auto-shrink target + warning about complex layouts
This commit is contained in:
parent
cd8d86a98c
commit
6d4066784d
1 changed files with 5 additions and 1 deletions
|
|
@ -43,7 +43,11 @@
|
|||
<input type="number" name="target_disk_size_gb" class="pve-input"
|
||||
value="{{ analysis.disk_size_gb }}"
|
||||
placeholder="Leave blank for auto-shrink">
|
||||
<span class="pve-hint">{{ analysis.disk_size_gb }} GB detected. Omit to auto-shrink (10% of size, min 20 GB).</span>
|
||||
<span class="pve-hint">
|
||||
{{ analysis.disk_size_gb }} GB detected. Auto-shrink to {{ (analysis.disk_size_gb * 0.1)|round(0)|int if (analysis.disk_size_gb * 0.1) > 20 else 20 }} GB if left blank.<br>
|
||||
<strong>Warning:</strong> shrinking can break complex layouts (LVM, encryption).
|
||||
If unsure, enter the full size ({{ analysis.disk_size_gb }} GB) to skip.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pve-row">
|
||||
|
|
|
|||
Loading…
Reference in a new issue