[pve-devel] [PATCH installer 2/2] tui: disable automatic text wrapping for form labels
Christoph Heiss
c.heiss at proxmox.com
Thu Jun 22 11:56:17 CEST 2023
This just causes weird layouts; such that labels and inputs do not line
up anymore.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
proxmox-tui-installer/src/views/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-tui-installer/src/views/mod.rs b/proxmox-tui-installer/src/views/mod.rs
index ee96398..14d3209 100644
--- a/proxmox-tui-installer/src/views/mod.rs
+++ b/proxmox-tui-installer/src/views/mod.rs
@@ -305,7 +305,7 @@ impl FormView {
}
pub fn add_child(&mut self, label: &str, view: impl View) {
- self.add_to_column(0, TextView::new(format!("{label}: ")));
+ self.add_to_column(0, TextView::new(format!("{label}: ")).no_wrap());
self.add_to_column(1, view);
}
--
2.40.1
More information about the pve-devel
mailing list