Skip to content

Commit

Permalink
Merge pull request #266 from Propy/dev
Browse files Browse the repository at this point in the history
dev -> main
  • Loading branch information
JayWelsh authored Sep 27, 2024
2 parents 7f5d4cb + 8f7aa1d commit 8a4619d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const GLOBAL_TOP_BANNER_HEIGHT = 28;
export const GLOBAL_PAGE_HEIGHT = IS_GLOBAL_TOP_BANNER_ENABLED ? `calc(100vh - ${64 + GLOBAL_TOP_BANNER_HEIGHT}px)` : 'calc(100vh - 64px)';
export const getGlobalPageHeight = (isConsideredMobile: boolean) => {
if(isConsideredMobile) {
return IS_GLOBAL_TOP_BANNER_ENABLED ? `calc(100vh - ${(64 * 2) + GLOBAL_TOP_BANNER_HEIGHT}px)` : 'calc(100vh - 64px)';
return IS_GLOBAL_TOP_BANNER_ENABLED ? `calc(100vh - ${((64 * 2) - 14) + GLOBAL_TOP_BANNER_HEIGHT}px)` : 'calc(100vh - 64px)';
}
return GLOBAL_PAGE_HEIGHT;
}
Expand Down

0 comments on commit 8a4619d

Please sign in to comment.