From 3d5008fe637d2a70203180c76f363db894748555 Mon Sep 17 00:00:00 2001 From: yolossn Date: Tue, 6 Aug 2024 14:11:28 +0530 Subject: [PATCH] opencost: Fix the Details View Header Action the header action was breaking the app and it is fixed now. Signed-off-by: yolossn --- opencost/src/__snapshots__/details.stories.storyshot | 8 ++++---- opencost/src/detail.tsx | 2 +- opencost/src/index.tsx | 10 +++++++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/opencost/src/__snapshots__/details.stories.storyshot b/opencost/src/__snapshots__/details.stories.storyshot index 53b997a..2ca73ff 100644 --- a/opencost/src/__snapshots__/details.stories.storyshot +++ b/opencost/src/__snapshots__/details.stories.storyshot @@ -9,7 +9,7 @@ exports[`Storyshots OpencostDetails Loading State 1`] = ` class="MuiBox-root css-j1fy4m" >
+
{ + event.preventDefault(); + const targetElement = document.getElementById('opencost-plugin-cost-section'); + if (targetElement) { + targetElement.scrollIntoView({ behavior: 'auto' }); + } + }; + return ( - +