Skip to content

Commit

Permalink
Max height for split panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik committed Oct 24, 2023
1 parent 9a42c25 commit 9227c4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/FeaturePanel/Climbing/ClimbingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export const ClimbingView = ({ isReadOnly, onEditorClick }: Props) => {
size={splitPaneHeight}
onDragStarted={onDragStarted}
onDragFinished={onDragFinished}
pane1Style={{ maxHeight: '90%' }}
>
<StickyContainer imageHeight={imageSize.height} imageUrl={imageUrl}>
<BlurContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const ClimbingContextProvider = ({ children }) => {
const [splitPaneHeight, setSplitPaneHeight] = useState<number>(800);
const [isPointMoving, setIsPointMoving] = useState<boolean>(false);
const [isPointClicked, setIsPointClicked] = useState<boolean>(false);
const [areRoutesVisible, setAreRoutesVisible] = useState<boolean>(false);
const [areRoutesVisible, setAreRoutesVisible] = useState<boolean>(true);
const [editorPosition, setEditorPosition] = useState<Position>({
x: 0,
y: 0,
Expand Down

0 comments on commit 9227c4e

Please sign in to comment.