Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: bryans-go <[email protected]>
  • Loading branch information
bryans-go committed Oct 24, 2024
1 parent 0372184 commit 2fd3211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/views/workspace/create/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (m SummaryModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.viewport.LineDown(1) // Scroll down
}
case tea.WindowSizeMsg:
m.viewport.Height = max(1, min(m.height, msg.Height-15))
m.viewport.Height = max(1, min(25, min(m.height, msg.Height-15)))
m.viewport.Width = max(20, min(maxWidth, min(m.width, msg.Width-15)))

}
Expand Down

0 comments on commit 2fd3211

Please sign in to comment.