From d09b6e182c29184c40f7e6949b3dec71042aff18 Mon Sep 17 00:00:00 2001 From: mixeme Date: Wed, 24 Jun 2026 22:26:34 +0300 Subject: [PATCH] ui: 720p-safe default window size + tighter layout minimums (T5.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lower default from 1120×720 to 1024×660 so the window opens fully visible on 1366×768 / 720p screens. Reduce minJobsSidebarWidth (480→400) and commandOutputScroll min size (520×160→460×120) to match; the layout engine enforces these as the natural minimum, keeping the UI usable at the smaller default. Co-Authored-By: Claude Sonnet 4.6 --- src/ui/jobs_view.go | 4 ++-- src/ui/run.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/jobs_view.go b/src/ui/jobs_view.go index feb455d..38a215d 100644 --- a/src/ui/jobs_view.go +++ b/src/ui/jobs_view.go @@ -17,7 +17,7 @@ import ( const allFolders = "All" const noFolder = "No folder" -const minJobsSidebarWidth float32 = 480 +const minJobsSidebarWidth float32 = 400 // maxJobActivityRows caps the "Selected job activity" panel to the most recent // entries. The full per-job history (up to maxJobLogs) remains in the History @@ -88,7 +88,7 @@ func newJobsView(w fyne.Window, svc *app.Service) (fyne.CanvasObject, func()) { // Command output can contain long lines and preserved whitespace. TextGrid is // used instead of Label so stdout/stderr remains readable and does not vanish // against the theme when it is placed inside a scroll container. - commandOutputScroll.SetMinSize(fyne.NewSize(520, 160)) + commandOutputScroll.SetMinSize(fyne.NewSize(460, 120)) selectedLogs := lastJobLogs(selectedRuntime.Logs) jobLogs := widget.NewList( diff --git a/src/ui/run.go b/src/ui/run.go index a1de1e9..33113e0 100644 --- a/src/ui/run.go +++ b/src/ui/run.go @@ -48,7 +48,7 @@ func Run(startInTray bool) { w := a.NewWindow("GoSentry " + app.Version) configureSystemTray(a, w) - w.Resize(fyne.NewSize(1120, 720)) + w.Resize(fyne.NewSize(1024, 660)) content, recordStartup := newMainView(w) w.SetContent(content) serveSingleInstance(instanceListener, w)