diff --git a/package.json b/package.json
index f32c308ca..278dbff2a 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@codemirror/lang-javascript": "^6.1.1",
+ "@headlessui/react": "^1.7.13",
"@react-three/drei": "^9.42.0",
"@react-three/fiber": "^8.9.1",
"@testing-library/jest-dom": "^5.14.1",
@@ -19,6 +20,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-json-view": "^1.21.3",
+ "react-modal-promise": "^1.0.2",
"react-scripts": "5.0.1",
"swr": "^2.0.4",
"three": "^0.146.0",
diff --git a/src/App.tsx b/src/App.tsx
index 6e6c6a378..e775e89d2 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -23,6 +23,7 @@ import { PanelHeader } from './components/PanelHeader'
import { MemoryPanel } from './components/MemoryPanel'
import { useHotKeyListener } from './hooks/useHotKeyListener'
import { Stream } from './components/Stream'
+import ModalContainer from 'react-modal-promise'
const OrrthographicCamera = OrthographicCamera as any
@@ -140,6 +141,7 @@ function App() {
}, [code])
return (
+
diff --git a/src/Toolbar.tsx b/src/Toolbar.tsx
index 3e69de67f..24f08d9c7 100644
--- a/src/Toolbar.tsx
+++ b/src/Toolbar.tsx
@@ -32,7 +32,7 @@ export const Toolbar = () => {
sketchMode: 'selectFace',
})
}}
- className="border m-1 px-1 rounded"
+ className="border m-1 px-1 rounded text-xs"
>
Start Sketch
@@ -52,7 +52,7 @@ export const Toolbar = () => {
)
updateAst(modifiedAst)
}}
- className="border m-1 px-1 rounded"
+ className="border m-1 px-1 rounded text-xs"
>
SketchOnFace
@@ -68,7 +68,7 @@ export const Toolbar = () => {
position: guiMode.position,
})
}}
- className="border m-1 px-1 rounded"
+ className="border m-1 px-1 rounded text-xs"
>
Edit Sketch
@@ -88,7 +88,7 @@ export const Toolbar = () => {
)
updateAst(modifiedAst, pathToExtrudeArg)
}}
- className="border m-1 px-1 rounded"
+ className="border m-1 px-1 rounded text-xs"
>
ExtrudeSketch
@@ -106,7 +106,7 @@ export const Toolbar = () => {
)
updateAst(modifiedAst, pathToExtrudeArg)
}}
- className="border m-1 px-1 rounded"
+ className="border m-1 px-1 rounded text-xs"
>
ExtrudeSketch (w/o pipe)
@@ -116,7 +116,7 @@ export const Toolbar = () => {
{guiMode.mode === 'sketch' && (
@@ -130,7 +130,7 @@ export const Toolbar = () => {
return (