Skip to content

Commit

Permalink
fix ai layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Mar 9, 2024
1 parent 3c3f1c6 commit c880503
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ai/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
}

0 comments on commit c880503

Please sign in to comment.