v0.31.8: gap between playlists and songs matches the left inset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-29 17:14:29 -07:00
co-authored by Claude Opus 5.5
parent 627a0ff3b6
commit 4e860737de
3 changed files with 13 additions and 1 deletions
+9
View File
@@ -169,3 +169,12 @@ def test_row_is_knolled_with_equal_gaps_and_ends(qapp, tmp_path):
# The same GAP everywhere, ends included, at every width.
left_end, right_end = edges[0][0], bar.width() - 1 - edges[-1][1]
assert gaps + [left_end, right_end] == [GAP] * 7
def test_gap_between_playlists_and_songs_matches_left_inset(qapp, tmp_path):
from lintunes.gui.sidebar import SIDEBAR_INSET
window = _window(qapp, tmp_path)
lists = window._sidebar.list_area
left = _x(lists, window)
gap = _x(window._content, window) - (left + lists.width())
assert left == gap == SIDEBAR_INSET