mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	fix(mobile): new album icon has different height to existing album cover (#5422)
This commit is contained in:
		
							parent
							
								
									6111bf157e
								
							
						
					
					
						commit
						ca1be71bca
					
				@ -135,18 +135,24 @@ class LibraryPage extends HookConsumerWidget {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Widget buildCreateAlbumButton() {
 | 
					    Widget buildCreateAlbumButton() {
 | 
				
			||||||
 | 
					      return LayoutBuilder(
 | 
				
			||||||
 | 
					        builder: (context, constraints) {
 | 
				
			||||||
 | 
					          var cardSize = constraints.maxWidth;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return GestureDetector(
 | 
					          return GestureDetector(
 | 
				
			||||||
            onTap: () {
 | 
					            onTap: () {
 | 
				
			||||||
              context.autoPush(CreateAlbumRoute(isSharedAlbum: false));
 | 
					              context.autoPush(CreateAlbumRoute(isSharedAlbum: false));
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            child: Padding(
 | 
					            child: Padding(
 | 
				
			||||||
          padding: const EdgeInsets.only(bottom: 32),
 | 
					              padding:
 | 
				
			||||||
 | 
					                  const EdgeInsets.only(bottom: 32), // Adjust padding to suit
 | 
				
			||||||
              child: Column(
 | 
					              child: Column(
 | 
				
			||||||
                mainAxisAlignment: MainAxisAlignment.start,
 | 
					                mainAxisAlignment: MainAxisAlignment.start,
 | 
				
			||||||
                crossAxisAlignment: CrossAxisAlignment.start,
 | 
					                crossAxisAlignment: CrossAxisAlignment.start,
 | 
				
			||||||
                children: [
 | 
					                children: [
 | 
				
			||||||
              Expanded(
 | 
					                  Container(
 | 
				
			||||||
                child: Container(
 | 
					                    width: cardSize,
 | 
				
			||||||
 | 
					                    height: cardSize,
 | 
				
			||||||
                    decoration: BoxDecoration(
 | 
					                    decoration: BoxDecoration(
 | 
				
			||||||
                      border: Border.all(
 | 
					                      border: Border.all(
 | 
				
			||||||
                        color: isDarkTheme
 | 
					                        color: isDarkTheme
 | 
				
			||||||
@ -164,7 +170,6 @@ class LibraryPage extends HookConsumerWidget {
 | 
				
			|||||||
                      ),
 | 
					                      ),
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
                  ),
 | 
					                  ),
 | 
				
			||||||
              ),
 | 
					 | 
				
			||||||
                  Padding(
 | 
					                  Padding(
 | 
				
			||||||
                    padding: const EdgeInsets.only(
 | 
					                    padding: const EdgeInsets.only(
 | 
				
			||||||
                      top: 8.0,
 | 
					                      top: 8.0,
 | 
				
			||||||
@ -179,6 +184,8 @@ class LibraryPage extends HookConsumerWidget {
 | 
				
			|||||||
              ),
 | 
					              ),
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
          );
 | 
					          );
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					      );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Widget buildLibraryNavButton(
 | 
					    Widget buildLibraryNavButton(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user