diff --git a/docs/.vitepress/imgit/server/transform/5-build.ts b/docs/.vitepress/imgit/server/transform/5-build.ts index 46c4df372..16a0b2a13 100644 --- a/docs/.vitepress/imgit/server/transform/5-build.ts +++ b/docs/.vitepress/imgit/server/transform/5-build.ts @@ -50,6 +50,5 @@ export function buildServeRoot(asset: EncodedAsset): string { function buildStyle(size: AssetSize) { const mod = config.width && size.width > config.width ? config.width / size.width : 1; const width = Math.floor(size.width * mod); - const height = Math.floor(size.height * mod); - return `style="width: ${width}px; height: ${height}px"`; + return `style="width: ${width}px; height: 100%"`; }