From cda138e24335d46a0f020c6f10a62befd7a69349 Mon Sep 17 00:00:00 2001 From: Evangelos Skopelitis Date: Thu, 19 Dec 2024 17:58:02 -0500 Subject: [PATCH] frontend: Layout: Display main scroll bar under top bar Signed-off-by: Evangelos Skopelitis --- frontend/src/components/App/Layout.tsx | 22 ++++++++++++++++--- .../TopBar.NoToken.stories.storyshot | 2 +- .../TopBar.OneCluster.stories.storyshot | 2 +- .../TopBar.ProcessorAction.stories.storyshot | 2 +- .../TopBar.Token.stories.storyshot | 2 +- .../TopBar.TwoCluster.stories.storyshot | 2 +- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/App/Layout.tsx b/frontend/src/components/App/Layout.tsx index 5be1c59afa..6ba44bfa09 100644 --- a/frontend/src/components/App/Layout.tsx +++ b/frontend/src/components/App/Layout.tsx @@ -202,12 +202,28 @@ export default function Layout({}: LayoutProps) { > {t('Skip to main content')} - + -
+
{allClusters && !!clusterInURL && !Object.keys(allClusters).includes(getCluster() || '') ? ( @@ -217,7 +233,7 @@ export default function Layout({}: LayoutProps) { )} -
+
{arePluginsLoaded && ( diff --git a/frontend/src/components/App/__snapshots__/TopBar.NoToken.stories.storyshot b/frontend/src/components/App/__snapshots__/TopBar.NoToken.stories.storyshot index ddc6df30a2..a0ad4c190b 100644 --- a/frontend/src/components/App/__snapshots__/TopBar.NoToken.stories.storyshot +++ b/frontend/src/components/App/__snapshots__/TopBar.NoToken.stories.storyshot @@ -5,7 +5,7 @@ class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation1 MuiAppBar-root MuiAppBar-colorPrimary MuiAppBar-positionFixed mui-fixed css-1nczbvg-MuiPaper-root-MuiAppBar-root" >