From f4815641d85b826a2ac359623e2ed3a0d60637c8 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Thu, 11 May 2023 18:11:04 -0700 Subject: [PATCH] fixed the bug with smaller icon buttons --- frontend/src/views/DashboardPage/DashboardPage.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/DashboardPage/DashboardPage.tsx b/frontend/src/views/DashboardPage/DashboardPage.tsx index f5c64636a..f332b9283 100644 --- a/frontend/src/views/DashboardPage/DashboardPage.tsx +++ b/frontend/src/views/DashboardPage/DashboardPage.tsx @@ -505,7 +505,7 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => { setIsSecretValueHidden.toggle()} + onClick={() => handlePopUpOpen('secretSnapshots')} > @@ -530,7 +530,15 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => { setIsSecretValueHidden.toggle()} + onClick={() => { + if (secretContainer.current) { + secretContainer.current.scroll({ + top: 0, + behavior: 'smooth' + }); + } + prepend(DEFAULT_SECRET_VALUE, { shouldFocus: false }); + }} >