Skip to content

Commit

Permalink
fix rewards screen on large devices (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y authored Oct 30, 2024
1 parent d3d99f4 commit cfda1ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/config/Globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {

CONSTANTS: {
HEADER_HEIGHT: 70,
LG_HEADER_HEIGHT: 120,
LEFT_BAR_WIDTH: 250,
COLLAPSABLE_LEFT_BAR_WIDTH: 100,
COLLAPSABLE_RIGHT_BAR_WIDTH: 90,
Expand Down
10 changes: 7 additions & 3 deletions src/structure/MasterInterfacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,17 @@ const Container = styled.div<ModeProp>`
display: flex;
flex: 1;
flex-direction: column;
// min-height: calc(100dvh - ${GLOBALS.CONSTANTS.HEADER_HEIGHT}px);
// max-height: calc(100dvh - ${GLOBALS.CONSTANTS.HEADER_HEIGHT}px);
min-height: calc(100dvh - ${GLOBALS.CONSTANTS.HEADER_HEIGHT}px);
max-height: calc(100dvh - ${GLOBALS.CONSTANTS.HEADER_HEIGHT}px);
/* Padding to be handled by Modules individually */
/* padding: ${(props) => props.theme.interfaceTopPadding} 20px 20px 20px; */
align-items: stretch;
position: relative;
@media (min-width: 1900px) {
min-height: calc(100dvh - ${GLOBALS.CONSTANTS.LG_HEADER_HEIGHT}px);
max-height: calc(100dvh - ${GLOBALS.CONSTANTS.LG_HEADER_HEIGHT}px);
}
`;

const Interface = styled(Item)`
Expand Down

0 comments on commit cfda1ed

Please sign in to comment.