Feature/SW-3365 reduce upscaling of images (fix blurry images) * fix: handle when images are wider than 3:2 but rendered in a 3:2 container * use dimensions everywhere applicable * fall back to using <img sizes='auto' /> if possible * imageLoader: never nest * remove empty test file Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
9 lines
194 B
TypeScript
9 lines
194 B
TypeScript
import type { FocalPoint, Image } from "@scandic-hotels/trpc/types/image"
|
|
|
|
export interface HeroProps {
|
|
alt: string
|
|
src: string
|
|
focalPoint?: FocalPoint
|
|
dimensions?: Image["dimension"]
|
|
}
|