From 3ff1363446e238a8d7a9fdeb533763fb3f9ec307 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 17 Sep 2026 11:49:35 +0200 Subject: gui: the path keeps its telling end, and the checklist grows three items Squeezed, the toolbar's path label read "/t... ds". It now elides the start, since the end of a path is the part that says which directory this is, and will not shrink below about sixteen characters; the tooltip still holds it in full. The checklist gains the reordered bar, the About block, and the sandbox trap that had every file skipped: krino's own (min-age 2m) ignores a file written in the last two minutes. --- gui/internal/ui/plan.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/internal/ui/plan.go b/gui/internal/ui/plan.go index fe99a18..650668c 100644 --- a/gui/internal/ui/plan.go +++ b/gui/internal/ui/plan.go @@ -88,8 +88,12 @@ func newPlanView(w *Window) *planView { p.path = gtk.NewLabel("") p.path.SetXAlign(0) p.path.SetHExpand(true) - p.path.SetEllipsize(pango.EllipsizeMiddle) - p.path.SetMaxWidthChars(20) + // The end of a path says which directory this is, so that is the end + // that survives. It may be squeezed, but not to "/t... ds": below + // about this much it says nothing, and the tooltip holds it in full. + p.path.SetEllipsize(pango.EllipsizeStart) + p.path.SetMaxWidthChars(24) + p.path.SetWidthChars(16) p.dirs.Connect("notify::selected", p.showPath) p.scan = gtk.NewButtonWithLabel("Scan") // The one button that starts everything, so it carries the theme's -- cgit v1.3