From c618413728f342d191b04cf231692feb5ea5b259 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 22 Aug 2022 20:07:21 +0200 Subject: [PATCH] Make popup titles left-aligned In some cases when expanding popups with centered titles horizontally, the title would jump right and left by one character. The new popups also look more like the lazygit popups. --- src/ui/widgets/popup.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/widgets/popup.rs b/src/ui/widgets/popup.rs index a319130..96ce7c2 100644 --- a/src/ui/widgets/popup.rs +++ b/src/ui/widgets/popup.rs @@ -64,8 +64,7 @@ impl Popup { .style(self.border_style), ) .horizontal(2), - ) - .horizontal(0.5); + ); Layer::new(vec![window.into(), title.into()]).into() } else { window.into()