High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore(mobile): don't show drag scroll date in search page (#17594)
Toniaad5c3bada4c
diff --git a/mobile/lib/pages/search/search.page.dart b/mobile/lib/pages/search/search.page.dartindex 3f94f6b347..3610f0b6cd 100644--- a/mobile/lib/pages/search/search.page.dart+++ b/mobile/lib/pages/search/search.page.dart@@ -768,6 +768,7 @@ class SearchResultGrid extends StatelessWidget {editEnabled: true,favoriteEnabled: true,stackEnabled: false,+ dragScrollLabelEnabled: false,emptyIndicator: Padding(padding: const EdgeInsets.symmetric(horizontal: 16.0),child: !isSearchingdiff --git a/mobile/lib/widgets/asset_grid/immich_asset_grid.dart b/mobile/lib/widgets/asset_grid/immich_asset_grid.dartindex 5c1aa6ef69..2ec01e871f 100644--- a/mobile/lib/widgets/asset_grid/immich_asset_grid.dart+++ b/mobile/lib/widgets/asset_grid/immich_asset_grid.dart@@ -32,6 +32,7 @@ class ImmichAssetGrid extends HookConsumerWidget {final Widget? topWidget;final bool shrinkWrap;final bool showDragScroll;+ final bool showDragScrollLabel;final bool showStack;const ImmichAssetGrid({@@ -52,6 +53,7 @@ class ImmichAssetGrid extends HookConsumerWidget {this.topWidget,this.shrinkWrap = false,this.showDragScroll = true,+ this.showDragScrollLabel = true,this.showStack = false,});@@ -119,6 +121,7 @@ class ImmichAssetGrid extends HookConsumerWidget {shrinkWrap: shrinkWrap,showDragScroll: showDragScroll,showStack: showStack,+ showLabel: showDragScrollLabel,),);}diff --git a/mobile/lib/widgets/asset_grid/immich_asset_grid_view.dart b/mobile/lib/widgets/asset_grid/immich_asset_grid_view.dartindex c6e85418ca..a7141c33b2 100644--- a/mobile/lib/widgets/asset_grid/immich_asset_grid_view.dart+++ b/mobile/lib/widgets/asset_grid/immich_asset_grid_view.dart@@ -58,6 +58,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {final bool shrinkWrap;final bool showDragScroll;final bool showStack;+ final bool showLabel;const ImmichAssetGridView({super.key,@@ -78,6 +79,7 @@ class ImmichAssetGridView extends ConsumerStatefulWidget {this.shrinkWrap = false,this.showDragScroll = true,this.showStack = false,+ this.showLabel = true,});@override@@ -284,7 +286,7 @@ class ImmichAssetGridViewState extends ConsumerState<ImmichAssetGridView> {backgroundColor: context.isDarkTheme? context.colorScheme.primary.darken(amount: .5): context.colorScheme.primary,- labelTextBuilder: _labelBuilder,+ labelTextBuilder: widget.showLabel ? _labelBuilder : null,padding: appBarOffset()? const EdgeInsets.only(top: 60): const EdgeInsets.only(),diff --git a/mobile/lib/widgets/asset_grid/multiselect_grid.dart b/mobile/lib/widgets/asset_grid/multiselect_grid.dartindex e6a6ff7233..5ec59e3eeb 100644--- a/mobile/lib/widgets/asset_grid/multiselect_grid.dart+++ b/mobile/lib/widgets/asset_grid/multiselect_grid.dart@@ -35,6 +35,7 @@ class MultiselectGrid extends HookConsumerWidget {this.onRemoveFromAlbum,this.topWidget,this.stackEnabled = false,+ this.dragScrollLabelEnabled = true,this.archiveEnabled = false,this.deleteEnabled = true,this.favoriteEnabled = true,@@ -50,6 +51,7 @@ class MultiselectGrid extends HookConsumerWidget {final Future<bool> Function(Iterable<Asset>)? onRemoveFromAlbum;final Widget? topWidget;final bool stackEnabled;+ final bool dragScrollLabelEnabled;final bool archiveEnabled;final bool unarchive;final bool deleteEnabled;@@ -429,6 +431,7 @@ class MultiselectGrid extends HookConsumerWidget {),topWidget: topWidget,showStack: stackEnabled,+ showDragScrollLabel: dragScrollLabelEnabled,),error: (error, _) => Center(child: Text(error.toString())),loading: buildLoadingIndicator ?? buildDefaultLoadingIndicator,