From 9c624459d46365ff555d3de63dcd0947206f0a6a Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Wed, 5 Mar 2025 02:10:35 +0100 Subject: [PATCH] Fixed docs image ratio (#507) --- docs/fern/style.css | 21 +++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/fern/style.css b/docs/fern/style.css index e3c95338d..51718b314 100644 --- a/docs/fern/style.css +++ b/docs/fern/style.css @@ -142,29 +142,50 @@ tr.stack-clickable-row-missing { } .stack-50h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 50px !important; } .stack-100h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 100px !important; } .stack-150h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 150px !important; } .stack-200h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 200px !important; } .stack-250h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 250px !important; } .stack-300h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 300px !important; } .stack-350h { + aspect-ratio: unset !important; + height: unset !important; + width: unset !important; height: 350px !important; } diff --git a/package.json b/package.json index 0f24c7c4e..ff141068f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": "", "scripts": { "pre-no-codegen": "npx -y only-allow pnpm", - "pre-preinstall": "npx -y only-allow pnpm && node -e \"if(process.env.STACK_SKIP_TEMPLATE_GENERATION !== 'true') require('child_process').execSync('npx --package=ts-node ts-node ./scripts/generate-sdks.ts')\"", + "pre-preinstall": "npx -y only-allow pnpm && node -e \"if(process.env.STACK_SKIP_TEMPLATE_GENERATION !== 'true') require('child_process').execSync('npx --package=tsx tsx ./scripts/generate-sdks.ts')\"", "pre": "pnpm pre-preinstall && node -e \"if(process.env.STACK_SKIP_TEMPLATE_GENERATION !== 'true') { require('child_process').execSync('pnpm run generate-docs') }\"", "preinstall": "pnpm pre-preinstall", "typecheck": "pnpm pre && turbo typecheck", @@ -52,7 +52,7 @@ "verify-data-integrity": "pnpm pre && pnpm -C apps/backend run verify-data-integrity", "generate-openapi": "pnpm pre && turbo run generate-openapi", "generate-keys": "pnpm pre && turbo run generate-keys", - "generate-sdks": "npx --package=ts-node ts-node ./scripts/generate-sdks.ts", + "generate-sdks": "npx --package=tsx tsx ./scripts/generate-sdks.ts", "generate-sdks:watch": "chokidar --silent -c 'pnpm run generate-sdks' './packages/template' --ignore './packages/template/package.json' --ignore '**/node_modules/**' --ignore '**/dist/**' --ignore '**/.turbo/**' --throttle 2000", "generate-docs": "tsx ./scripts/generate-docs.ts", "generate-docs:watch": "chokidar --silent -c 'pnpm run generate-docs' './docs/fern/docs/pages-template' './docs/fern/docs-template.yml' --throttle 2000"