mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Only apply justify CSS if Text object has no justify set
This commit is contained in:
@@ -987,7 +987,8 @@ class Widget(DOMNode):
|
||||
rich_style = self.rich_style
|
||||
if isinstance(renderable, Text):
|
||||
renderable.stylize(rich_style)
|
||||
renderable.justify = self.styles.text_justify
|
||||
if not renderable.justify:
|
||||
renderable.justify = self.styles.text_justify
|
||||
else:
|
||||
renderable = Styled(renderable, rich_style)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user