fix(ui): Wrap spacer in container for better size control
Wrapped the transparent spacer rectangle in a container.NewMax and explicitly called Resize to ensure the 10px height is respected by the VBox layout. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
20a3165dc3
commit
4d7cd1e46d
8
main.go
8
main.go
|
|
@ -8750,9 +8750,11 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stack video and metadata with 10px spacing between them
|
// Stack video and metadata with 10px spacing between them
|
||||||
// Create a 10px spacer
|
// Create a 10px spacer using a container with fixed size
|
||||||
spacer := canvas.NewRectangle(color.Transparent)
|
spacerRect := canvas.NewRectangle(color.Transparent)
|
||||||
spacer.SetMinSize(fyne.NewSize(1, 10))
|
spacerRect.SetMinSize(fyne.NewSize(1, 10))
|
||||||
|
spacer := container.NewMax(spacerRect)
|
||||||
|
spacer.Resize(fyne.NewSize(1, 10))
|
||||||
|
|
||||||
leftColumn := container.NewVBox(videoPanel, spacer, metaPanel)
|
leftColumn := container.NewVBox(videoPanel, spacer, metaPanel)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user