Skip to content

Commit 8013f21

Browse files
authored
Merge pull request Expensify#82644 from software-mansion-labs/adjust-swrhp-width
Adjust Super Wide RHP width
2 parents 181426f + ac0d23d commit 8013f21

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/libs/Navigation/helpers/calculateSuperWideRHPWidth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import variables from '@styles/variables';
99
* @returns Calculated super wide RHP width with constraints applied
1010
*/
1111
function calculateSuperWideRHPWidth(windowWidth: number) {
12-
const superWideRHPWidth = windowWidth - variables.navigationTabBarSize - variables.sideBarWithLHBWidth;
12+
const superWideRHPWidth = windowWidth - (variables.navigationTabBarSize + variables.sideBarWithLHBWidth);
1313
const wideRHPWidth = calculateReceiptPaneRHPWidth(windowWidth) + variables.sideBarWidth;
1414

15-
return Math.max(Math.min(superWideRHPWidth, variables.superWideRHPMaxWidth), wideRHPWidth);
15+
return Math.max(superWideRHPWidth, wideRHPWidth);
1616
}
1717

1818
export default calculateSuperWideRHPWidth;

src/styles/variables.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export default {
106106
receiptPaneRHPMaxWidth: 465,
107107
homePageLeftColumnMaxWidth: 680,
108108
homePageRightColumnMaxWidth: 488,
109-
superWideRHPMaxWidth: 1260,
110109
minScanTooltipWidth: 320,
111110
uploadViewMargin: 20,
112111
chooseFilesViewMargin: 8,

0 commit comments

Comments
 (0)