From 9c3af404ad4bb8bcd3d13d6dad7cee7da123eb8f Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 27 Sep 2024 03:02:27 +1000 Subject: [PATCH] [8.x] [RCA] Fix extra margin on navigation menu (#194142) (#194170) # Backport This will backport the following commits from `main` to `8.x`: - [[RCA] Fix extra margin on navigation menu (#194142)](https://github.com/elastic/kibana/pull/194142) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Bena Kansara <69037875+benakansara@users.noreply.github.com> --- .../investigate_app/public/plugin.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/x-pack/plugins/observability_solution/investigate_app/public/plugin.tsx b/x-pack/plugins/observability_solution/investigate_app/public/plugin.tsx index de3aa5f5ed003..a98d89fb314b2 100644 --- a/x-pack/plugins/observability_solution/investigate_app/public/plugin.tsx +++ b/x-pack/plugins/observability_solution/investigate_app/public/plugin.tsx @@ -4,9 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { css } from '@emotion/css'; import { - APP_WRAPPER_CLASS, AppMountParameters, AppStatus, CoreSetup, @@ -106,17 +104,8 @@ export class InvestigateAppPlugin appMountParameters.element ); - const appWrapperClassName = css` - overflow: auto; - `; - - const appWrapperElement = document.getElementsByClassName(APP_WRAPPER_CLASS)[1]; - - appWrapperElement.classList.add(appWrapperClassName); - return () => { ReactDOM.unmountComponentAtNode(appMountParameters.element); - appWrapperElement.classList.remove(appWrapperClassName); }; }, });