From 3bb2b55f21e2ead16be4f7c4d9aa40cee87cca93 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Sat, 28 Sep 2024 14:21:35 +0800 Subject: [PATCH] fix: uniformly resizable size --- package.json | 1 - pnpm-lock.yaml | 11 ----------- src/app/content/views/AppContainer/index.tsx | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/package.json b/package.json index 6af2884..044408d 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,6 @@ "jiti": "^2.0.0", "lint-staged": "^15.2.10", "npm-run-all": "^4.1.5", - "package-up": "^5.0.0", "postcss": "^8.4.47", "postcss-rem-to-responsive-pixel": "^6.0.2", "prettier": "^3.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 52b1cc2..eff4fe5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -225,9 +225,6 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 - package-up: - specifier: ^5.0.0 - version: 5.0.0 postcss: specifier: ^8.4.47 version: 8.4.47 @@ -5183,10 +5180,6 @@ packages: resolution: {integrity: sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==} engines: {node: '>=14.16'} - package-up@5.0.0: - resolution: {integrity: sha512-MQEgDUvXCa3sGvqHg3pzHO8e9gqTCMPVrWUko3vPQGntwegmFo52mZb2abIVTjFnUcW0BcPz0D93jV5Cas1DWA==} - engines: {node: '>=18'} - pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} @@ -12561,10 +12554,6 @@ snapshots: registry-url: 6.0.1 semver: 7.6.3 - package-up@5.0.0: - dependencies: - find-up-simple: 1.0.0 - pako@1.0.11: {} parent-module@1.0.1: diff --git a/src/app/content/views/AppContainer/index.tsx b/src/app/content/views/AppContainer/index.tsx index 84af25f..c69261c 100644 --- a/src/app/content/views/AppContainer/index.tsx +++ b/src/app/content/views/AppContainer/index.tsx @@ -11,7 +11,7 @@ const AppContainer: FC = ({ children, open }) => { const { size, ref } = useResizable({ initSize: Math.max(375, window.innerWidth / 6), maxSize: Math.min(750, window.innerWidth / 3), - minSize: Math.max(375, window.innerWidth / 5), + minSize: Math.max(375, window.innerWidth / 6), direction: 'left' })