Skip to content

Commit

Permalink
fix view details secret fullscreen padding to 0 (#1493)
Browse files Browse the repository at this point in the history
closes #1450
  • Loading branch information
leorolland authored Apr 7, 2022
1 parent 309465e commit b24759e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/view/details.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ func (d *Details) toggleFullScreenCmd(evt *tcell.EventKey) *tcell.EventKey {
d.fullScreen = !d.fullScreen
d.SetFullScreen(d.fullScreen)
d.Box.SetBorder(!d.fullScreen)
if d.fullScreen {
d.Box.SetBorderPadding(0, 0, 0, 0)
} else {
d.Box.SetBorderPadding(0, 0, 1, 1)
}

return nil
}
Expand Down

0 comments on commit b24759e

Please sign in to comment.