Merge pull request #1318 from davep/issue/1316/label-width

Change the default width of a label to auto
This commit is contained in:
Dave Pearson
2022-12-05 13:16:23 +00:00
committed by GitHub
3 changed files with 129 additions and 122 deletions

View File

@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- Rebuilt `DirectoryTree` with new `Tree` control.
- The default `width` of a `Label` is now `auto`.
### Fixed

View File

@@ -5,3 +5,11 @@ from ._static import Static
class Label(Static):
"""A simple label widget for displaying text-oriented renderables."""
DEFAULT_CSS = """
Label {
width: auto;
height: auto;
}
"""
"""str: The default styling of a `Label`."""

File diff suppressed because one or more lines are too long