From 32473d1b3e8e931e91bdc9c0319a4cc6f11d7c19 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Fri, 22 Nov 2024 23:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20Previewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- package.json | 10 +++++----- src/builtins/Previewer/style.ts | 3 +++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d3572b..b313e8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Install bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Install deps run: bun i diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52cb3dd..d3c459c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Install bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Install deps run: bun i diff --git a/package.json b/package.json index 884dde2..5c6aad6 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "@types/node": "^20.17.6", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "~1.2.2", "clean-pkg-json": "^1.2.0", "commitlint": "^19.6.0", "concurrently": "^9.1.0", @@ -99,9 +99,9 @@ "father": "^4.5.1", "father-plugin-dumi-theme": "1.0.0-rc.1", "husky": "^9.1.7", - "jsdom": "^22.1.0", + "jsdom": "^24.1.3", "leva": "^0.9.35", - "lint-staged": "^13.3.0", + "lint-staged": "^15.2.10", "prettier": "^3.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -110,14 +110,14 @@ "semantic-release": "^21.1.2", "stylelint": "^15.11.0", "typescript": "^5.6.3", - "vitest": "^1.6.0" + "vitest": "~1.2.2" }, "peerDependencies": { "@giscus/react": ">=3", "@lobehub/ui": ">=1", "antd": ">=5", "antd-style": ">=3", - "dumi": ">=2", + "dumi": ">=2.4", "lucide-react": ">=0.292", "react": ">=18", "react-dom": ">=18", diff --git a/src/builtins/Previewer/style.ts b/src/builtins/Previewer/style.ts index d46753b..3e4ab1a 100644 --- a/src/builtins/Previewer/style.ts +++ b/src/builtins/Previewer/style.ts @@ -12,9 +12,12 @@ export const useStyles = createStyles(({ css, token, prefixCls }) => { `, container: css` .dumi-default-previewer { + position: relative; + overflow: hidden; display: flex; flex-direction: column; + border-color: ${token.colorBorderSecondary}; &-demo {