Skip to content

Commit 2f38af7

Browse files
authored
Merge pull request #5785 from python-and-novella/fix-breakpoints
Fix breakpoints
2 parents 98da797 + e897cfd commit 2f38af7

11 files changed

+1699
-823
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Fixed `VERTICAL_BREAKPOINTS` doesn't work https://github.com/Textualize/textual/pull/5785
13+
814
## [3.2.0] - 2025-05-02
915

1016
### Fixed

src/textual/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ async def _on_resize(self, event: events.Resize) -> None:
13751375
if horizontal_breakpoints:
13761376
self._set_breakpoints(width, horizontal_breakpoints)
13771377
if vertical_breakpoints:
1378-
self._set_breakpoints(height, horizontal_breakpoints)
1378+
self._set_breakpoints(height, vertical_breakpoints)
13791379

13801380
def _set_breakpoints(
13811381
self, dimension: int, breakpoints: list[tuple[int, str]]

tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints[size0].svg renamed to tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints_horizontal[size0].svg

Lines changed: 145 additions & 145 deletions
Loading

tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints[size1].svg renamed to tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints_horizontal[size1].svg

Lines changed: 185 additions & 185 deletions
Loading

tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints[size2].svg renamed to tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints_horizontal[size2].svg

Lines changed: 225 additions & 225 deletions
Loading

tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints[size3].svg renamed to tests/snapshot_tests/__snapshots__/test_snapshots/test_breakpoints_horizontal[size3].svg

Lines changed: 266 additions & 266 deletions
Loading
Lines changed: 145 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)