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.
This commit is contained in:
Joscha 2022-08-22 20:07:21 +02:00
parent 7b1259dee3
commit c618413728

View file

@ -64,8 +64,7 @@ impl Popup {
.style(self.border_style), .style(self.border_style),
) )
.horizontal(2), .horizontal(2),
) );
.horizontal(0.5);
Layer::new(vec![window.into(), title.into()]).into() Layer::new(vec![window.into(), title.into()]).into()
} else { } else {
window.into() window.into()