Move alignment examples to more logical place

This commit is contained in:
Darren Burns
2022-04-26 15:46:32 +01:00
parent eb65d9689d
commit bc00863147

View File

@@ -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)}",
),
],
)