From 2bc01490168920afa2535c7d60ae58ebde98049b Mon Sep 17 00:00:00 2001 From: leorolland Date: Wed, 9 Mar 2022 22:54:03 +0100 Subject: [PATCH] fix view details secret fullscreen padding to 0 closes https://github.com/derailed/k9s/issues/1450 --- internal/view/details.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/view/details.go b/internal/view/details.go index 0d927600ed..95724c930b 100644 --- a/internal/view/details.go +++ b/internal/view/details.go @@ -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 }