diff --git a/src/components/control_panel.jsx b/src/components/control_panel.jsx index 49a150d..80b40b6 100644 --- a/src/components/control_panel.jsx +++ b/src/components/control_panel.jsx @@ -195,33 +195,18 @@ export default function ControlPanel() { }, Fullscreen: { children: [], - function: () => {}, - }, - }, - Insert: { - "New table": { - children: [], - function: () => {}, - }, - "New relationship": { - children: [], - function: () => {}, - }, - Note: { - children: [], - function: () => {}, - }, - Image: { - children: [], - function: () => {}, - }, - Textbox: { - children: [], - function: () => {}, - }, - Shape: { - children: [], - function: () => {}, + function: () => { + const element = document.documentElement; + if (element.requestFullscreen) { + element.requestFullscreen(); + } else if (element.mozRequestFullScreen) { + element.mozRequestFullScreen(); + } else if (element.webkitRequestFullscreen) { + element.webkitRequestFullscreen(); + } else if (element.msRequestFullscreen) { + element.msRequestFullscreen(); + } + }, }, }, Logs: { @@ -334,7 +319,7 @@ export default function ControlPanel() { } > -
+
{category}
@@ -411,7 +396,7 @@ export default function ControlPanel() { } trigger="click" > -
+
@@ -450,21 +435,33 @@ export default function ControlPanel() { } trigger="click" > -
+
zoom
- - - - @@ -481,21 +478,33 @@ export default function ControlPanel() { } trigger="click" > -
+
- - - -
diff --git a/src/components/editor_panel.jsx b/src/components/editor_panel.jsx index 6816895..c1c8d6f 100644 --- a/src/components/editor_panel.jsx +++ b/src/components/editor_panel.jsx @@ -80,6 +80,7 @@ const EditorPanel = (props) => { onChange={(key) => { setTab(key); }} + collapsible > {contentList[parseInt(tab) - 1]}