fix view details secret fullscreen padding to 0 (#1493)

closes https://github.com/derailed/k9s/issues/1450
mine
Léo 2022-04-07 18:42:52 +02:00 committed by GitHub
parent 309465e2b6
commit b24759e6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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
}