Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: great place to work cropping issue in careers page (#6322)
Browse files Browse the repository at this point in the history
* fix: great place to work cropping issue in careers page

* fix: added padding to layout when nav type is careers
  • Loading branch information
Nuzhy-Deriv authored Dec 26, 2023
1 parent 0f90069 commit 4e498bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type LayoutProps = {
type MainType = {
is_static?: boolean
padding_top?: string
type?: string
}

export type ModalPayloadType = {
Expand All @@ -50,7 +51,8 @@ export type ModalPayloadType = {
}

const Main = styled.main<MainType>`
padding-top: ${({ padding_top }) => (padding_top && `${padding_top}rem`) || '8rem'};
padding-top: ${({ padding_top, type }) =>
padding_top ? `${padding_top}rem` : type === 'careers' ? '11rem' : '8rem'};
background: var(--color-white);
height: 100%;
position: relative;
Expand Down Expand Up @@ -150,7 +152,7 @@ const Layout = ({
setModalPayload={setModalPayload}
>
<div className="styled-layout">
<Main padding_top={padding_top} is_static={is_static}>
<Main padding_top={padding_top} type={type} is_static={is_static}>
{children}
</Main>
<EURedirect
Expand Down
2 changes: 1 addition & 1 deletion src/pages/careers/locations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const Locations = () => {
}

return (
<Layout type="careers" padding_top="7">
<Layout type="careers">
<Hero />
<StyledSectionContainer direction="column" padding="80px 16px">
<Header
Expand Down

0 comments on commit 4e498bc

Please sign in to comment.