aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/ui/plan.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 11:27:00 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 11:27:00 +0200
commit0e56395aaa46359974a5eb21acaab32b2ea02a0f (patch)
treea245b641d3ff6deeabe411fa052d6b22b635726f /gui/internal/ui/plan.go
parent48d1781fed3f9ea5cfd2b270bd92fd2826605636 (diff)
downloadkrino-0e56395aaa46359974a5eb21acaab32b2ea02a0f.tar.gz
krino-0e56395aaa46359974a5eb21acaab32b2ea02a0f.zip
gui: an exclude is not a rule - the form no longer assumes onev0.0.11
Selecting the exclude row in Forms panicked: newFormEditor read the form's rule for its when, name, action and stop, and an exclude has only the when. The editor now takes the conditions from whichever of the two the form holds and leaves out the fields an exclude has not got. Checklist item 49 covers it. Also the 0.0.11 changelog and README, and header floors wide enough that the age heading is not clipped.
Diffstat (limited to 'gui/internal/ui/plan.go')
-rw-r--r--gui/internal/ui/plan.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/internal/ui/plan.go b/gui/internal/ui/plan.go
index 0adc6b1..5daba6a 100644
--- a/gui/internal/ui/plan.go
+++ b/gui/internal/ui/plan.go
@@ -672,7 +672,7 @@ func (p *planView) fillList() {
// shown whole rather than cut to an ellipsis. The list scrolls sideways
// when the total does not fit (his report, 2026-09-16).
func (p *planView) widths() [7]int {
- w := [7]int{16, 4, 3, 6, 16, 8, 6}
+ w := [7]int{16, 5, 4, 6, 16, 8, 6}
root := p.dirRoot()
now := time.Now()
for _, r := range p.tab.Rows {
@@ -761,7 +761,7 @@ func (p *planView) showOutcome() bool {
// headerFloors are how narrow each heading may become, matching the cells
// under it.
-var headerFloors = [7]int{12, 4, 3, 6, 16, 10, 8}
+var headerFloors = [7]int{12, 5, 4, 6, 16, 10, 8}
// columnTitles name the columns of the plan.
var columnTitles = [7]string{"file", "size", "age", "action", "where it would go", "rule", "outcome"}