From 8d66cf2a6c265052d84bc66a05826f7abe9e1e5e Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:29:52 +0300 Subject: [PATCH] fix aspect --- docs/.vitepress/imgit/server/transform/5-build.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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%"`; }