diff --git a/api/graphql/resolvers/timeline.go b/api/graphql/resolvers/timeline.go index 86746168..a26f7dd0 100644 --- a/api/graphql/resolvers/timeline.go +++ b/api/graphql/resolvers/timeline.go @@ -20,7 +20,8 @@ func (r *queryResolver) MyTimeline(ctx context.Context, paginate *models.Paginat Order("YEAR(media.date_shot) DESC"). Order("MONTH(media.date_shot) DESC"). Order("DAY(media.date_shot) DESC"). - Order("albums.title ASC") + Order("albums.title ASC"). + Order("TIME(media.date_shot) DESC") if fromDate != nil { query = query.Where("media.date_shot < ?", fromDate) diff --git a/ui/src/components/albumGallery/AlbumBox.tsx b/ui/src/components/albumGallery/AlbumBox.tsx index 32db6c8a..f0dd946d 100644 --- a/ui/src/components/albumGallery/AlbumBox.tsx +++ b/ui/src/components/albumGallery/AlbumBox.tsx @@ -25,7 +25,7 @@ const AlbumBoxImage = ({ src, ...props }: AlbumBoxImageProps) => { let placeholder = null if (!loaded) { placeholder = ( -
+ ) } @@ -44,7 +44,7 @@ type AlbumBoxProps = { export const AlbumBox = ({ album, customLink, ...props }: AlbumBoxProps) => { const wrapperClasses = - 'inline-block text-center text-gray-900 mx-3 my-2 xs:h-60' + 'inline-block text-center text-gray-900 mx-3 my-2 xs:h-60 xs:w-[220px]' if (album) { return ( @@ -54,7 +54,9 @@ export const AlbumBox = ({ album, customLink, ...props }: AlbumBoxProps) => { {...props} >{album.title}
++ {album.title} +
) }