From c880503f880d85df2bfdcc2e77b77efc418b5f82 Mon Sep 17 00:00:00 2001 From: ddkwork <2762713521@qq.com> Date: Sun, 10 Mar 2024 04:37:25 +0800 Subject: [PATCH] fix ai layout --- ai/ai.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ai/ai.go b/ai/ai.go index 67d94f27..4e3ccb34 100644 --- a/ai/ai.go +++ b/ai/ai.go @@ -65,13 +65,13 @@ func main() { }() }) - downframe := gi.NewFrame(frame) - downframe.Style(func(s *styles.Style) { s.Direction = styles.Row }) - gi.NewTextField(downframe).SetType(gi.TextFieldOutlined).SetPlaceholder("Enter a prompt here").Style(func(s *styles.Style) { + downFrame := gi.NewFrame(rightSplits) + downFrame.Style(func(s *styles.Style) { s.Direction = styles.Row }) + gi.NewTextField(downFrame).SetType(gi.TextFieldOutlined).SetPlaceholder("Enter a prompt here").Style(func(s *styles.Style) { s.Max.X.Zero() }) - newFrame := gi.NewFrame(downframe) + newFrame := gi.NewFrame(downFrame) newFrame.Style(func(s *styles.Style) { s.Direction = styles.Column s.Align.Self = styles.End @@ -84,7 +84,7 @@ func main() { s.Min.Set(units.Dp(33)) }) - rightSplits.SetSplits(.6, .4) //todo not working + rightSplits.SetSplits(.6, .4) b.RunMainWindow() }