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=[
|
bullets=[
|
||||||
Bullet(
|
Bullet(
|
||||||
markup="The [i]align[/] property expects exactly 2 values",
|
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=[
|
examples=[
|
||||||
|
Example("align: <horizontal> <vertical>"),
|
||||||
Example(
|
Example(
|
||||||
"align: center middle; [dim]# Center vertically & horizontally within parent"
|
"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