mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Force justify left on text input
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user