Skip to content

Commit

Permalink
[RCA] Fix extra margin on navigation menu (#194142)
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara authored Sep 26, 2024
1 parent f6f77b9 commit 4323814
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
};
},
});
Expand Down

0 comments on commit 4323814

Please sign in to comment.