-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text-align
CSS support
#704
Conversation
darrenburns
commented
Aug 25, 2022
•
edited
Loading
edited
|
||
rich_style = self.rich_style | ||
if isinstance(renderable, Text): | ||
renderable.stylize(rich_style) | ||
if not renderable.justify: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't sure whether to do this if
or not...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable...
text-align
CSS support
"start": "left", | ||
"end": "right", | ||
"justify": "full", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Textual doesn't support RTL, we can just directly map start -> left and so on.
tests/test_auto_refresh.py
Outdated
@@ -25,4 +25,4 @@ def test_auto_refresh(): | |||
elapsed = app.run(quit_after=1, headless=True) | |||
assert elapsed is not None | |||
# CI can run slower, so we need to give this a bit of margin | |||
assert elapsed >= 0.3 and elapsed < 0.6 | |||
assert 0.3 <= elapsed < 0.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got some failures where elapsed was outwith the range.