Skip to content

Commit

Permalink
auto-resize plan panel when search panel is open
Browse files Browse the repository at this point in the history
  • Loading branch information
August Fu committed Apr 9, 2024
1 parent 9d83d4d commit 1ceceb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/degree-plan/components/FourYearPlanPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ const FourYearPlanPage = ({
// @ts-ignore */}
<SplitPane
split="vertical"
maxSize={windowWidth ? windowWidth * 0.60 : 1000}
// maxSize={windowWidth ? windowWidth * 0.60 : 1000}
maxSize={searchPanelOpen ?
(windowWidth ? windowWidth : 1000) * 0.45
: (windowWidth ? windowWidth : 1000) * 0.6}
defaultSize="50%"
style={{
padding: "1.5rem"
Expand Down

0 comments on commit 1ceceb6

Please sign in to comment.