fix: uniformly resizable size

This commit is contained in:
molvqingtai 2024-09-28 14:21:35 +08:00
parent e0f4a3f18a
commit 3bb2b55f21
3 changed files with 1 additions and 13 deletions

View file

@ -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",

View file

@ -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:

View file

@ -11,7 +11,7 @@ const AppContainer: FC<AppContainerProps> = ({ 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'
})