From 3e2f335a4ca479ede1ffd5879236be0bea48d02c Mon Sep 17 00:00:00 2001 From: Fynn Petersen-Frey <10599762+fyfrey@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:50:27 +0200 Subject: [PATCH] feat(mobile): optimize screen space usage (#2911) * feat(mobile): optimize screen space usage * undo nav bar changes --- .../lib/modules/home/ui/asset_grid/group_divider_title.dart | 4 ++-- .../modules/home/ui/asset_grid/immich_asset_grid_view.dart | 6 +++--- mobile/lib/shared/views/tab_controller_page.dart | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mobile/lib/modules/home/ui/asset_grid/group_divider_title.dart b/mobile/lib/modules/home/ui/asset_grid/group_divider_title.dart index cedfa46e51..97c1b45549 100644 --- a/mobile/lib/modules/home/ui/asset_grid/group_divider_title.dart +++ b/mobile/lib/modules/home/ui/asset_grid/group_divider_title.dart @@ -29,8 +29,8 @@ class GroupDividerTitle extends ConsumerWidget { return Padding( padding: const EdgeInsets.only( - top: 29.0, - bottom: 10.0, + top: 12.0, + bottom: 4.0, left: 12.0, right: 12.0, ), diff --git a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart index c564927ad9..79dca40f9d 100644 --- a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart +++ b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart @@ -127,7 +127,7 @@ class ImmichAssetGridViewState extends State { width: width * widthDistribution[index], height: width, margin: EdgeInsets.only( - top: widget.margin, + bottom: widget.margin, right: last ? 0.0 : widget.margin, ), child: _buildThumbnailOrPlaceholder(asset, absoluteOffset + index), @@ -157,7 +157,7 @@ class ImmichAssetGridViewState extends State { final String title = monthFormat.format(date); return Padding( key: Key("month-$title"), - padding: const EdgeInsets.only(left: 12.0, top: 30), + padding: const EdgeInsets.only(left: 12.0, top: 24.0), child: Text( title, style: TextStyle( @@ -179,7 +179,7 @@ class ImmichAssetGridViewState extends State { width: width, height: height, margin: EdgeInsets.only( - top: widget.margin, + bottom: widget.margin, right: i + 1 == num ? 0.0 : widget.margin, ), color: Colors.grey, diff --git a/mobile/lib/shared/views/tab_controller_page.dart b/mobile/lib/shared/views/tab_controller_page.dart index e14f535144..f718c480d0 100644 --- a/mobile/lib/shared/views/tab_controller_page.dart +++ b/mobile/lib/shared/views/tab_controller_page.dart @@ -112,7 +112,6 @@ class TabControllerPage extends HookConsumerWidget { ), selectedIcon: buildIcon( Icon( - size: 24, Icons.photo_library, color: Theme.of(context).primaryColor, ),