From 2fbfa5bba93c827c900ce27269030243a91b7b29 Mon Sep 17 00:00:00 2001 From: simonychuang Date: Thu, 1 Feb 2024 12:48:56 -0500 Subject: [PATCH] Add isSecurityPerspective to content area for padding change (#18039) --- .../src/components/security/page-layout/ContentArea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graylog2-web-interface/src/components/security/page-layout/ContentArea.tsx b/graylog2-web-interface/src/components/security/page-layout/ContentArea.tsx index ce862bf4c0d1..0e346d3e3691 100644 --- a/graylog2-web-interface/src/components/security/page-layout/ContentArea.tsx +++ b/graylog2-web-interface/src/components/security/page-layout/ContentArea.tsx @@ -18,11 +18,11 @@ import styled, { css } from 'styled-components'; import { NAV_BAR_WIDTH } from './SideNav'; -const ContentArea = styled.div<{ $sideNavIsOpen: boolean; }>(({ $sideNavIsOpen, theme }) => css` +const ContentArea = styled.div<{ $sideNavIsOpen: boolean; $isSecurityPerspective?: boolean; }>(({ $sideNavIsOpen, $isSecurityPerspective, theme }) => css` display: flex; flex-direction: column; padding-left: ${$sideNavIsOpen ? `${NAV_BAR_WIDTH}px` : '0px'}; - padding-top: 15px; + padding-top: ${$isSecurityPerspective ? '0px' : '15px'}; transition: all 0.33s ease-in-out; position: relative; width: 100%;