Skip to content

Commit

Permalink
fix aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Nov 10, 2023
1 parent 5a99cc8 commit 8d66cf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/imgit/server/transform/5-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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%"`;
}

0 comments on commit 8d66cf2

Please sign in to comment.