fix: termux compatibility (#495)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-26 22:31:17 +08:00
committed by GitHub
parent ceedd86310
commit 5db1253ab8
9 changed files with 41 additions and 34 deletions

View File

@@ -900,6 +900,6 @@ class _ServerDetailPageState extends State<ServerDetailPage>
bool _getInitExpand(int len, [int? max]) {
if (!_collapse) return true;
return len <= (max ?? 3);
return len > 0 && len <= (max ?? 3);
}
}