From 28ba8824cd293bb5865071e2cd0d249459a2b41a Mon Sep 17 00:00:00 2001 From: Pete Linnegan Date: Thu, 3 Oct 2024 12:30:30 +0100 Subject: [PATCH] fix: modify size reduction logic to remove scrolling --- dashboard/package-lock.json | 8 ++++---- dashboard/src/render/resize.service.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index 6b8791f..58423a8 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -13,7 +13,7 @@ "devDependencies": { "@testing-library/dom": "^9.3.4", "happy-dom": "^13.7.3", - "typescript": "^5.2.2", + "typescript": "^5.6.2", "vite": "^5.1.6", "vitest": "^1.3.1" } @@ -2370,9 +2370,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/dashboard/src/render/resize.service.ts b/dashboard/src/render/resize.service.ts index d81d89b..1975002 100644 --- a/dashboard/src/render/resize.service.ts +++ b/dashboard/src/render/resize.service.ts @@ -5,7 +5,7 @@ const pause = (ms:number)=>new Promise((resolve)=>setTimeout(resolve, ms)) function resizeContainer(id:string):void { const contentHeight = getContentHeight(id) if (!contentHeight) return - getObject(id).style.minHeight = `${contentHeight + 1}px` + getObject(id).style.minHeight = `${contentHeight + 2}px` } async function isLoading(id:string):Promise{