We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6295eff + 2e6e43e commit 8760c3cCopy full SHA for 8760c3c
CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
16
### Changed
17
18
- Rebuilt `DirectoryTree` with new `Tree` control.
19
+- The default `width` of a `Label` is now `auto`.
20
21
### Fixed
22
src/textual/widgets/_label.py
@@ -5,3 +5,11 @@
5
6
class Label(Static):
7
"""A simple label widget for displaying text-oriented renderables."""
8
+
9
+ DEFAULT_CSS = """
10
+ Label {
11
+ width: auto;
12
+ height: auto;
13
+ }
14
+ """
15
+ """str: The default styling of a `Label`."""
0 commit comments