File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -4081,23 +4081,42 @@ class BreakpointApp(App):
4081
4081
(120 , "-very-wide" ),
4082
4082
]
4083
4083
4084
+ VERTICAL_BREAKPOINTS = [
4085
+ (0 , "-low" ),
4086
+ (30 , "-middle" ),
4087
+ (40 , "-high" ),
4088
+ (50 , "-very-high" ),
4089
+ ]
4090
+
4084
4091
CSS = """
4085
4092
Screen {
4086
4093
&.-narrow {
4087
- Grid { grid-size: 1 ; }
4094
+ Grid { grid-columns: 20 ; }
4088
4095
}
4089
4096
&.-normal {
4090
- Grid { grid-size: 2 ; }
4097
+ Grid { grid-columns: 40 ; }
4091
4098
}
4092
4099
&.-wide {
4093
- Grid { grid-size: 4 ; }
4100
+ Grid { grid-columns: 80 ; }
4094
4101
}
4095
4102
&.-very-wide {
4096
- Grid { grid-size: 6; }
4103
+ Grid { grid-columns: 120; }
4104
+ }
4105
+ &.-low {
4106
+ Grid { grid-rows: 1; }
4107
+ }
4108
+ &.-middle {
4109
+ Grid { grid-rows: 2; }
4110
+ }
4111
+ &.-high {
4112
+ Grid { grid-rows: 4; }
4113
+ }
4114
+ &.-very-high {
4115
+ Grid { grid-rows: 6; }
4097
4116
}
4098
4117
}
4099
4118
"""
4100
-
4119
+
4101
4120
def compose (self ) -> ComposeResult :
4102
4121
with Grid ():
4103
4122
for n in range (16 ):
You can’t perform that action at this time.
0 commit comments