From bc008631477b09aba0818e6f2dc5b255f79fe101 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 26 Apr 2022 15:46:32 +0100 Subject: [PATCH] Move alignment examples to more logical place --- src/textual/css/_help_text.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/textual/css/_help_text.py b/src/textual/css/_help_text.py index 886e20767..d0814e39b 100644 --- a/src/textual/css/_help_text.py +++ b/src/textual/css/_help_text.py @@ -560,14 +560,8 @@ def align_help_text() -> HelpText: bullets=[ Bullet( markup="The [i]align[/] property expects exactly 2 values", - examples=[Example("align: ")], - ), - Bullet( - f"Valid values for are {friendly_list(VALID_ALIGN_HORIZONTAL)}" - ), - Bullet( - f"Valid values for are {friendly_list(VALID_ALIGN_VERTICAL)}", examples=[ + Example("align: "), Example( "align: center middle; [dim]# Center vertically & horizontally within parent" ), @@ -576,5 +570,11 @@ def align_help_text() -> HelpText: ), ], ), + Bullet( + f"Valid values for are {friendly_list(VALID_ALIGN_HORIZONTAL)}" + ), + Bullet( + f"Valid values for are {friendly_list(VALID_ALIGN_VERTICAL)}", + ), ], )