From 8cff33fcabe5787d9530f2c1c3379c75d01ed42b Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sun, 28 Dec 2025 19:08:39 -0500 Subject: [PATCH] fix(ui): Enable text wrapping for batch settings toggle button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed Issue: - "Hide Batch Settings" button text was overflowing beyond button boundary - Text was truncated and hard to read in narrow layouts Solution: - Created wrapped label overlay on button using container.NewStack - Label has TextWrapWord enabled for automatic line breaking - Maintains button click functionality while improving readability - Text now wraps to multiple lines when space is constrained Files Changed: - main.go: Batch settings toggle button (lines 6858-6879) Reported-by: User (screenshot showing text overflow) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- main.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 2b2ab33..ac8fd17 100644 --- a/main.go +++ b/main.go @@ -6855,21 +6855,31 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { settingsContent.Hide() settingsVisible := false + toggleSettingsLabel := widget.NewLabel("Show Batch Settings") + toggleSettingsLabel.Wrapping = fyne.TextWrapWord + toggleSettingsLabel.Alignment = fyne.TextAlignCenter + var toggleSettingsBtn *widget.Button - toggleSettingsBtn = widget.NewButton("Show Batch Settings", func() { + toggleSettingsBtn = widget.NewButton("", func() { if settingsVisible { settingsContent.Hide() - toggleSettingsBtn.SetText("Show Batch Settings") + toggleSettingsLabel.SetText("Show Batch Settings") } else { settingsContent.Show() - toggleSettingsBtn.SetText("Hide Batch Settings") + toggleSettingsLabel.SetText("Hide Batch Settings") } settingsVisible = !settingsVisible }) toggleSettingsBtn.Importance = widget.LowImportance - settingsBox := container.NewVBox( + // Replace button text with wrapped label + toggleSettingsBtnWithLabel := container.NewStack( toggleSettingsBtn, + container.NewPadded(toggleSettingsLabel), + ) + + settingsBox := container.NewVBox( + toggleSettingsBtnWithLabel, settingsContent, widget.NewSeparator(), )