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 {
|
Center {
|
||||||
align-horizontal: center;
|
align-horizontal: center;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
width: 1fr;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -79,6 +80,7 @@ class Middle(Widget):
|
|||||||
Middle {
|
Middle {
|
||||||
align-vertical: middle;
|
align-vertical: middle;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
height: 1fr;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user