fix: 修正清单进度文字折行,默认最多翻 99 页

进度数字固定在进度条左侧,不再被挤出窗口。
This commit is contained in:
Nixevol
2026-10-24 23:16:08 +08:00
parent cea741eead
commit 7253217e18
4 changed files with 27 additions and 19 deletions
+3 -3
View File
@@ -422,9 +422,9 @@ def test_catalog_page_limit_defaults_and_clamps() -> None:
with tempfile.TemporaryDirectory() as tmp:
path = Path(tmp) / "catalog-settings.json"
with patch.object(cat, "settings_path", lambda: path), patch.object(cat, "_drop_catalog_cache"):
assert cat.page_limit() == 300
assert cat.set_page_limit(0) == 300
assert cat.set_page_limit(-8) == 300
assert cat.page_limit() == 99
assert cat.set_page_limit(0) == 99
assert cat.set_page_limit(-8) == 99
assert cat.set_page_limit(12) == 12
assert cat.page_limit() == 12
assert cat.set_page_limit(5000) == 999