Force justify left on text input

This commit is contained in:
Darren Burns
2022-10-31 14:40:33 +00:00
parent 803ad940fd
commit 398d18f7ad

View File

@@ -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")