mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Limit MAX_DPR to 3 in Image component
Reduces the maximum device pixel ratio (DPR) from 4 to 3 in the Image component to align with the configuration in routes/image.ts.
This commit is contained in:
@@ -33,7 +33,11 @@ export type ImageResponsiveSize = {
|
||||
width: number;
|
||||
};
|
||||
|
||||
const MAX_DPR = 4;
|
||||
/**
|
||||
* Maximum device pixel ratio (DPR) to generate in srcSet.
|
||||
* Limit to 3 to align with routes/image.ts
|
||||
*/
|
||||
const MAX_DPR = 3;
|
||||
|
||||
interface ImageCommonProps {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user