Skip to content

Commit 398d18f

Browse files
committed
Force justify left on text input
1 parent 803ad94 commit 398d18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/widgets/_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def cursor_width(self) -> int:
171171

172172
def render(self) -> RenderableType:
173173
if not self.value:
174-
placeholder = Text(self.placeholder)
174+
placeholder = Text(self.placeholder, justify="left")
175175
placeholder.stylize(self.get_component_rich_style("input--placeholder"))
176176
if self.has_focus:
177177
cursor_style = self.get_component_rich_style("input--cursor")

0 commit comments

Comments
 (0)