Skip to content

Commit

Permalink
texteditor min sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Jul 21, 2024
1 parent af0c17d commit 1ed2416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/texteditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func ConfigOutputTextEditor(ed *texteditor.Editor) {
s.Text.WhiteSpace = styles.WhiteSpacePreWrap
s.Text.TabSize = 8
s.Min.X.Ch(20)
s.Min.Y.Em(20)
s.Min.Y.Em(5)
s.Grow.Set(1, 1)
if ed.Buffer != nil {
ed.Buffer.Options.LineNumbers = false
Expand All @@ -187,8 +187,8 @@ func ConfigOutputTextEditor(ed *texteditor.Editor) {
func ConfigEditorTextEditor(ed *texteditor.Editor) {
ed.Styler(func(s *styles.Style) {
s.Grow.Set(1, 1)
s.Min.X.Ch(60)
s.Min.Y.Em(20)
s.Min.X.Ch(40)
s.Min.Y.Em(10)
})
}

Expand Down

0 comments on commit 1ed2416

Please sign in to comment.