From a4024487987612282da270fa4331249f288e34d0 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 12 Oct 2024 00:07:48 +1100 Subject: [PATCH] [8.x] [Inventory] Fix top empty space in side navigation when content exceeds window height (#195756) (#195878) # Backport This will backport the following commits from `main` to `8.x`: - [[Inventory] Fix top empty space in side navigation when content exceeds window height (#195756)](https://github.com/elastic/kibana/pull/195756) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Irene Blanco --- .../inventory/public/application.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/x-pack/plugins/observability_solution/inventory/public/application.tsx b/x-pack/plugins/observability_solution/inventory/public/application.tsx index d34be920d68ff..7b611d1d04c22 100644 --- a/x-pack/plugins/observability_solution/inventory/public/application.tsx +++ b/x-pack/plugins/observability_solution/inventory/public/application.tsx @@ -6,9 +6,8 @@ */ import React from 'react'; import ReactDOM from 'react-dom'; -import { APP_WRAPPER_CLASS, type AppMountParameters, type CoreStart } from '@kbn/core/public'; +import { type AppMountParameters, type CoreStart } from '@kbn/core/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; -import { css } from '@emotion/css'; import type { InventoryStartDependencies } from './types'; import { InventoryServices } from './services/types'; import { AppRoot } from './components/app_root'; @@ -25,12 +24,6 @@ export const renderApp = ({ } & { appMountParameters: AppMountParameters }) => { const { element } = appMountParameters; - const appWrapperClassName = css` - overflow: auto; - `; - const appWrapperElement = document.getElementsByClassName(APP_WRAPPER_CLASS)[1]; - appWrapperElement.classList.add(appWrapperClassName); - ReactDOM.render( { ReactDOM.unmountComponentAtNode(element); - appWrapperElement.classList.remove(APP_WRAPPER_CLASS); }; };