Skip to content

Commit

Permalink
Merge pull request #43 from shafin-deriv/shafin/WEBREL-2788/fix--layo…
Browse files Browse the repository at this point in the history
…ut-height-issue

[DAPI] fix: height issue in documents page
  • Loading branch information
shafin-deriv authored May 30, 2024
2 parents 04327ec + 8074d3b commit d0c45b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import HomepageFeatures from '@site/src/features/Home';

export default function Home(): JSX.Element {
return (
<Layout title={'Home'} description='Deriv API documentation'>
<Layout
title={'Home'}
description='Deriv API documentation'
wrapperClassName='home_page_wrapper'
>
<Head>
<title>Deriv API | Customise your trading app</title>
<meta
Expand Down
7 changes: 7 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ div[class*='sidebarViewport'] {
align-items: center;
}

.main-wrapper {
min-height: calc(100vh - 4.5rem);
&.home_page_wrapper {
height: 100%;
}
}

.navbar {
padding: 0 5vw;
height: var(--nav-height);
Expand Down

0 comments on commit d0c45b8

Please sign in to comment.