From d26cecdedb1dfdc86e6829e5eb0a2e90dc30c9a1 Mon Sep 17 00:00:00 2001 From: regexowl Date: Fri, 9 Feb 2024 16:15:50 +0100 Subject: [PATCH] Wizard: Remove aspect ratio for chart This removes the aspect ratio for chart and sets `maintainAspectRatio` to false. The aspect ratio was causing problems with the annotation plugin, rendering the currentDate annotation line in a wrong place for some windows sizes. --- .../CreateImageWizard/formComponents/ReleaseLifecycle.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx b/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx index cf69c236..290c6aad 100644 --- a/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx +++ b/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx @@ -82,8 +82,7 @@ export const chartMajorVersionCfg = { }, }, responsive: true, - maintainAspectRatio: true, - aspectRatio: 1 | 5, + maintainAspectRatio: false, plugins: { tooltip: { enabled: false,