Skip to content

Commit

Permalink
feat(bugfix/report-panel-shrinks): Increase max lines for diff
Browse files Browse the repository at this point in the history
Comment out 'shorten long lines' for diffs
  • Loading branch information
kevin-mesiab authored and kmesiab committed Dec 8, 2023
1 parent b042c1d commit cc2d96b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func onPullRequestModalClickedHandler(ok bool) {

func onGetPullRequestHandler(prContents string) {

prContents = critic.ShortenLongLines(prContents, "\n\n")
// prContents = critic.ShortenLongLines(prContents, "\n\n")

// Set the diff text
criticWindow.DiffPanel.SetDiffText(prContents)
Expand Down
2 changes: 1 addition & 1 deletion ui/components/panel_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewDiffPanel(size fyne.Size, text string) *DiffPanel {
Canvas: scrollableParent,
TextGrid: grid,
Size: newSize,
MaxLines: 100,
MaxLines: 500,
}

return panel.SetDiffText(text)
Expand Down

0 comments on commit cc2d96b

Please sign in to comment.