feat(mobile): locate in timeline (#16722)

* feat(mobile): view in timeline

* fix: throwing error on scroll

* only show option if not in photos tab
This commit is contained in:
Yaros 2025-03-10 03:31:34 +01:00 committed by GitHub
parent 6da77600e5
commit bdabea4030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 1 deletions

View file

@ -332,7 +332,7 @@ class ImmichAssetGridViewState extends ConsumerState<ImmichAssetGridView> {
);
}
if (index != -1 && index < widget.renderList.elements.length) {
if (index < widget.renderList.elements.length) {
// Not sure why the index is shifted, but it works. :3
_scrollToIndex(index + 1);
} else {