mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1318 from davep/issue/1316/label-width
Change the default width of a label to auto
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user