fix: hide alpha jump bar for small libraries

This commit is contained in:
edde746
2026-02-26 11:55:45 +01:00
parent 79350b8d71
commit 4b6c82b071
@@ -786,6 +786,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
bool get _shouldShowAlphaJumpBar {
if (_selectedGrouping == 'folders') return false;
if (_firstCharacters.isEmpty) return false;
if (_firstCharacters.length < 6 || _alphaHelper.totalItemCount < 80) return false;
// Show when no sort is selected (default is titleSort) or when explicitly sorting by title
final sortKey = _selectedSort?.key ?? '';
return sortKey.isEmpty || sortKey.startsWith('titleSort');