mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Tweak default Center/Middle dimensions.
We set dimensions to 1fr instead of 100% (original request) or blank (previous change) for consistency with the other containers.
This commit is contained in:
@@ -68,6 +68,7 @@ class Center(Widget):
|
||||
Center {
|
||||
align-horizontal: center;
|
||||
height: auto;
|
||||
width: 1fr;
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -79,6 +80,7 @@ class Middle(Widget):
|
||||
Middle {
|
||||
align-vertical: middle;
|
||||
width: auto;
|
||||
height: 1fr;
|
||||
}
|
||||
"""
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user