On a short frame, a graph's caption and node-type key step aside
Message paths and the mesh walk keep their list's rows on the Cardputer instead of spending three on a key to marks that mean the same thing everywhere; the rule is widgets.short_frame, the same one that draws a tab strip on one row. The message paths budget also counts the key's real height, which wraps to two lines at 53 columns and had been counted as one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5675ba0e1f
commit
390a0a1616
6 files changed
+42
-30
No files matched your search
@@ -290,10 +290,10 @@ def test_every_advert_type_has_one_name() -> None:
|
||||
|
||||
|
||||
def test_a_compact_tab_strip_is_one_row_and_never_moves_a_label() -> None:
|
||||
"""Below COMPACT_TABS_BELOW rows the strip draws on its rule, every tab a fixed width."""
|
||||
from meshterm.ui.widgets import COMPACT_TABS_BELOW, tab_compact, tab_strip
|
||||
"""Below SHORT_FRAME_BELOW rows the strip draws on its rule, every tab a fixed width."""
|
||||
from meshterm.ui.widgets import SHORT_FRAME_BELOW, short_frame, tab_strip
|
||||
|
||||
assert tab_compact(COMPACT_TABS_BELOW - 1) and not tab_compact(COMPACT_TABS_BELOW)
|
||||
assert short_frame(SHORT_FRAME_BELOW - 1) and not short_frame(SHORT_FRAME_BELOW)
|
||||
rows = [tab_strip(["Info", "Routes", "Area"], i, 40, compact=True) for i in range(3)]
|
||||
plains = [group.renderables[0].plain for group in rows]
|
||||
assert all(len(group.renderables) == 1 for group in rows)
|
||||
|
||||
Reference in new issue
Block a user