mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Fix text labels incorrectly clickable in the new collection browser
This commit is contained in:
parent
e8b3c6e0a4
commit
19df299c6c
1 changed files with 4 additions and 1 deletions
|
@ -474,10 +474,13 @@ class _ContentListBody extends StatelessWidget {
|
|||
bloc.add(_SetSelectedItems(items: selected.cast()));
|
||||
},
|
||||
onItemTap: (context, index, _) {
|
||||
if (state.transformedItems[index] is! _FileItem) {
|
||||
return;
|
||||
}
|
||||
final actualIndex = index -
|
||||
state.transformedItems
|
||||
.sublist(0, index)
|
||||
.where((e) => e is! _ActualItem)
|
||||
.where((e) => e is! _FileItem)
|
||||
.length;
|
||||
Navigator.of(context).pushNamed(
|
||||
Viewer.routeName,
|
||||
|
|
Loading…
Reference in a new issue