diff --git a/apps/tracer/package.json b/apps/tracer/package.json index f59dd1e2..d2181518 100644 --- a/apps/tracer/package.json +++ b/apps/tracer/package.json @@ -15,7 +15,7 @@ "monaco-editor": "^0.51.0", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-resizable": "^3.0.5", + "react-resplit": "^1.3.2-alpha.0", "react-scroll-to-bottom": "^4.2.0", "react-use-websocket": "^4.8.1", "use-debounce": "^10.0.3" diff --git a/apps/tracer/src/App.css b/apps/tracer/src/App.css index 799f5c2b..bbad2b34 100644 --- a/apps/tracer/src/App.css +++ b/apps/tracer/src/App.css @@ -1,6 +1,18 @@ +.app-content { + flex: 1; +} + .top-area { display: flex; - flex: 1; + overflow: hidden; +} + +.app-splitter { + border-top: 5px groove #ef6456; +} + +.bottom-area { + display: flex; } .navigation-area { @@ -11,6 +23,7 @@ .handler-list { flex: 1; + overflow: scroll; } .target-actions { @@ -31,20 +44,6 @@ position: absolute !important; } -.event-area { - display: flex; -} - -.event-area-handle { - position: absolute; - top: 0; - right: 0; - left: 0; - height: 5px; - border-top: 5px groove #ef6456; - cursor: ns-resize; -} - .event-view { flex: 1; } diff --git a/apps/tracer/src/App.tsx b/apps/tracer/src/App.tsx index 320aea63..3839971d 100644 --- a/apps/tracer/src/App.tsx +++ b/apps/tracer/src/App.tsx @@ -1,5 +1,4 @@ import "./App.css"; -import "react-resizable/css/styles.css"; import AddTargetsDialog from "./AddTargetsDialog.tsx"; import EventView from "./EventView.tsx"; import HandlerEditor from "./HandlerEditor.tsx"; @@ -20,7 +19,7 @@ import { ButtonGroup, } from "@blueprintjs/core"; import { useEffect, useState } from "react"; -import { ResizableBox } from "react-resizable"; +import { Resplit } from 'react-resplit'; import useWebSocket, { ReadyState } from "react-use-websocket"; export default function App() { @@ -121,42 +120,45 @@ export default function App() { return ( <> -
-
- setSelectedScope(scope)} - selectedHandler={selectedHandler} - onHandlerSelect={handleHandlerSelection} - /> - - - {(spawnedProgram !== null) ? : null} - -
-
- {connectionError} - - - - -
-
- }> - - + + +
+ setSelectedScope(scope)} + selectedHandler={selectedHandler} + onHandlerSelect={handleHandlerSelection} + /> + + + {(spawnedProgram !== null) ? : null} + +
+
+ {connectionError} + + + + +
+
+ + + + +