Skip to content

Commit c7ca557

Browse files
fix: update responsive image sizes for better layout consistency
- adjust column widths for compact and medium/large sizes - refine column widths for extra large size
1 parent 259e6b6 commit c7ca557

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/utils/responsiveImage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ export function buildDetailSrcSet(url: string, format: 'webp' | 'png'): string {
5151
*/
5252
export function getResponsiveSizes(imageSize: ImageSize): string {
5353
if (imageSize === 'compact') {
54-
// xs/sm: 2 cols (~45vw after gaps), md/lg: 4 cols (~23vw), xl: 6 cols (~15vw)
55-
return '(max-width: 899px) 45vw, (max-width: 1535px) 23vw, 15vw';
54+
// xs/sm: 2 cols (50vw), md/lg: 4 cols (25vw), xl: 6 cols (17vw)
55+
return '(max-width: 899px) 50vw, (max-width: 1535px) 25vw, 17vw';
5656
}
57-
// xs/sm: 1 col (100vw), md/lg: 2 cols (~45vw after gaps), xl: 3 cols (~400px actual)
58-
return '(max-width: 899px) 100vw, (max-width: 1535px) 45vw, 400px';
57+
// xs/sm: 1 col (100vw), md/lg: 2 cols (50vw), xl: 3 cols (33vw)
58+
return '(max-width: 899px) 100vw, (max-width: 1535px) 50vw, 33vw';
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)