From a44e97f4a36f200109dc46eae281c2534d608008 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 4 May 2020 22:08:44 -0500 Subject: [PATCH] terminal resizing --- package.json | 5 +-- src/components/ActionButton.tsx | 2 +- src/components/App.tsx | 34 +++++++++++++++---- src/components/Editor.tsx | 54 +++++++++++++------------------ src/components/OpenFileButton.tsx | 2 +- src/components/Statusbar.tsx | 10 ++---- src/components/Terminal.tsx | 21 +++++++----- src/components/Toolbar.tsx | 28 +++++++--------- src/index.scss | 16 +-------- yarn.lock | 15 ++++++--- 10 files changed, 93 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index d1b39847..00cab946 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@types/web-bluetooth": "^0.0.5", "ace-builds": "^1.4.9", "bootstrap": "^4.4.1", - "bootswatch": "^4.4.1", "jszip": "^3.4.0", "node-sass": "^4.13.1", "react": "^16.13.1", @@ -27,6 +26,7 @@ "react-dom": "^16.13.1", "react-dropzone": "^10.2.2", "react-redux": "^7.2.0", + "react-resize-observer": "^1.1.1", "react-scripts": "3.4.1", "react-transition-group": "^4.3.0", "redux": "^4.0.5", @@ -35,7 +35,8 @@ "redux-saga": "^1.1.3", "redux-thunk": "^2.3.0", "typescript": "~3.7.2", - "xterm": "^4.5.0" + "xterm": "^4.5.0", + "xterm-addon-fit": "^0.3.0" }, "scripts": { "prepare": "mkdir -p public/static/js && cp node_modules/@pybricks/mpy-cross-4/build-wasm/mpy-cross.wasm public/static/js/", diff --git a/src/components/ActionButton.tsx b/src/components/ActionButton.tsx index b3e9a825..ffed3e15 100644 --- a/src/components/ActionButton.tsx +++ b/src/components/ActionButton.tsx @@ -31,7 +31,7 @@ class ActionButton extends React.Component> } >