Fix image size for categories and albums
This commit is contained in:
@@ -30,8 +30,8 @@ const categoryAlbums = await getCategoryAlbums(settings, category.category.url);
|
||||
<Image
|
||||
src={getImageUrl(album.thumbnail.url)}
|
||||
alt={album.title}
|
||||
width="1200"
|
||||
height="630"
|
||||
width={album.thumbnail.width}
|
||||
height={album.thumbnail.height}
|
||||
class="rounded-2xl transition-transform duration-300 group-hover:scale-102"
|
||||
/>
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ const categories = await getAllCategories(settings);
|
||||
<Image
|
||||
src={getImageUrl(category.thumbnail.url)}
|
||||
alt={category.title}
|
||||
width="1200"
|
||||
height="630"
|
||||
width={category.thumbnail.width}
|
||||
height={category.thumbnail.height}
|
||||
class="rounded-2xl transition-transform duration-300 group-hover:scale-102"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user