From 398d18f7ad1d5bbd2b6839c1436de686c90518e4 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 31 Oct 2022 14:40:33 +0000 Subject: [PATCH] Force justify left on text input --- src/textual/widgets/_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_input.py b/src/textual/widgets/_input.py index 936d59d68..c82e1074c 100644 --- a/src/textual/widgets/_input.py +++ b/src/textual/widgets/_input.py @@ -171,7 +171,7 @@ class Input(Widget, can_focus=True): def render(self) -> RenderableType: if not self.value: - placeholder = Text(self.placeholder) + placeholder = Text(self.placeholder, justify="left") placeholder.stylize(self.get_component_rich_style("input--placeholder")) if self.has_focus: cursor_style = self.get_component_rich_style("input--cursor")