Skip to content

Commit

Permalink
Add isSecurityPerspective to content area for padding change (#18039)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonychuang authored Feb 1, 2024
1 parent d30123e commit 2fbfa5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down

0 comments on commit 2fbfa5b

Please sign in to comment.