Skip to content

Commit 0f6f424

Browse files
authored
fix: transformedHeight calc (#5)
1 parent 045bfbd commit 0f6f424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/qwik-image/src/lib/image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export const getSrcSet = async ({
160160
let transformedHeight =
161161
typeof height === 'string' ? parseInt(height, 10) : height;
162162
if (height && aspectRatio) {
163-
transformedHeight = Math.round(breakpoint * aspectRatio);
163+
transformedHeight = Math.round(breakpoint / aspectRatio);
164164
}
165165

166166
if (!imageTransformer$) {

0 commit comments

Comments
 (0)