Skip to content

Commit 0c967a5

Browse files
committed
comments in example
1 parent 8ca10ba commit 0c967a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/breakpoints.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
A demonstration of how to make an app respond to the dimensions of the terminal.
99
1010
Try resizing the terminal, then have a look at the source to see how it works!
11-
12-
`ctrl+q` to quit.
13-
1411
"""
1512

1613

1714
class BreakpointApp(App):
1815

16+
# A breakpoint consists of a width and a class name to set
1917
HORIZONTAL_BREAKPOINTS = [
2018
(0, "-narrow"),
2119
(40, "-normal"),
@@ -24,10 +22,10 @@ class BreakpointApp(App):
2422
]
2523

2624
CSS = """
27-
Screen {
28-
overflow-y: auto;
25+
Screen {
2926
Placeholder { padding: 2; }
3027
Grid { grid-rows: auto; height: auto; }
28+
# Change the styles according to the breakpoint classes
3129
&.-narrow {
3230
Grid { grid-size: 1; }
3331
}

0 commit comments

Comments
 (0)