Skip to content

Commit 483ccb3

Browse files
authored
Merge pull request #6056 from TomJGooding/docs-how-to-add-inline-padding-note
docs(how-to): add note about inline padding
2 parents 75fc0c7 + bc9f5ef commit 483ccb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/how-to/style-inline-apps.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ The following app displays the the current time (and keeps it up to date).
1919

2020
With Textual's default settings, this clock will be displayed in 5 lines; 3 for the digits and 2 for a top and bottom border.
2121

22+
!!! note
23+
24+
Textual also adds a blank line above inline apps for padding.
25+
To remove this default padding, you can set `INLINE_PADDING = 0` on your app class.
26+
2227
You can change the height or the border with CSS and the `:inline` pseudo-selector, which only matches rules in inline mode.
2328
Let's update this app to remove the default border, and increase the height:
2429

0 commit comments

Comments
 (0)