From 9227c4e70a1cc44ff6c689ecaed36732d2c7d034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20V=C3=A1clav=C3=ADk?= Date: Tue, 24 Oct 2023 20:10:29 +0200 Subject: [PATCH] Max height for split panel --- src/components/FeaturePanel/Climbing/ClimbingView.tsx | 1 + .../FeaturePanel/Climbing/contexts/ClimbingContext.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/FeaturePanel/Climbing/ClimbingView.tsx b/src/components/FeaturePanel/Climbing/ClimbingView.tsx index 9c40ff068..7249574bc 100644 --- a/src/components/FeaturePanel/Climbing/ClimbingView.tsx +++ b/src/components/FeaturePanel/Climbing/ClimbingView.tsx @@ -235,6 +235,7 @@ export const ClimbingView = ({ isReadOnly, onEditorClick }: Props) => { size={splitPaneHeight} onDragStarted={onDragStarted} onDragFinished={onDragFinished} + pane1Style={{ maxHeight: '90%' }} > diff --git a/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx b/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx index 2c57350f5..af7c0c671 100644 --- a/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx +++ b/src/components/FeaturePanel/Climbing/contexts/ClimbingContext.tsx @@ -112,7 +112,7 @@ export const ClimbingContextProvider = ({ children }) => { const [splitPaneHeight, setSplitPaneHeight] = useState(800); const [isPointMoving, setIsPointMoving] = useState(false); const [isPointClicked, setIsPointClicked] = useState(false); - const [areRoutesVisible, setAreRoutesVisible] = useState(false); + const [areRoutesVisible, setAreRoutesVisible] = useState(true); const [editorPosition, setEditorPosition] = useState({ x: 0, y: 0,