mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Move alignment examples to more logical place
This commit is contained in:
@@ -560,14 +560,8 @@ def align_help_text() -> HelpText:
|
||||
bullets=[
|
||||
Bullet(
|
||||
markup="The [i]align[/] property expects exactly 2 values",
|
||||
examples=[Example("align: <horizontal> <vertical>")],
|
||||
),
|
||||
Bullet(
|
||||
f"Valid values for <horizontal> are {friendly_list(VALID_ALIGN_HORIZONTAL)}"
|
||||
),
|
||||
Bullet(
|
||||
f"Valid values for <vertical> are {friendly_list(VALID_ALIGN_VERTICAL)}",
|
||||
examples=[
|
||||
Example("align: <horizontal> <vertical>"),
|
||||
Example(
|
||||
"align: center middle; [dim]# Center vertically & horizontally within parent"
|
||||
),
|
||||
@@ -576,5 +570,11 @@ def align_help_text() -> HelpText:
|
||||
),
|
||||
],
|
||||
),
|
||||
Bullet(
|
||||
f"Valid values for <horizontal> are {friendly_list(VALID_ALIGN_HORIZONTAL)}"
|
||||
),
|
||||
Bullet(
|
||||
f"Valid values for <vertical> are {friendly_list(VALID_ALIGN_VERTICAL)}",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user