diff --git a/WebSocketClient/index.html b/WebSocketClient/index.html index 005d80b..1163df0 100644 --- a/WebSocketClient/index.html +++ b/WebSocketClient/index.html @@ -64,11 +64,14 @@

Get the UVLS VSCode Extension

-
+
+
+
+
@@ -88,48 +91,77 @@

Get the UVLS VSCode Extension

diff --git a/WebSocketClient/src/uvlTutorial.ts b/WebSocketClient/src/uvlTutorial.ts index 3721644..d80330d 100644 --- a/WebSocketClient/src/uvlTutorial.ts +++ b/WebSocketClient/src/uvlTutorial.ts @@ -13,13 +13,20 @@ export default function initUvlTutorial(editor: editor.IStandaloneCodeEditor) { uvlTutorialButton.addEventListener('click', function () { let tutorialPageCounter = 0; tutorialToggle = !tutorialToggle; - let mainDiv = document.getElementById("main-div"); - let splitter = document.getElementById("splitter"); + let mainDiv = document.getElementById("third"); + const secondPane = document.getElementById("second"); + const thirdPane = document.getElementById("third"); if (tutorialToggle) { - splitter!.style.width = "75%"; + if (secondPane && thirdPane) { + secondPane.style.width = "50%"; + thirdPane.style.width = "50%"; + } setTutorialPage(mainDiv, tutorialPageCounter); } else { - splitter!.style.width = "100%"; + if (secondPane && thirdPane) { + secondPane.style.width = "100%"; + thirdPane.style.width = "0%"; + } let newDiv = document.getElementById("uvl-tutorial-div"); mainDiv!.removeChild(newDiv!); } diff --git a/WebSocketClient/style/split.css b/WebSocketClient/style/split.css index 49352fd..3a74169 100644 --- a/WebSocketClient/style/split.css +++ b/WebSocketClient/style/split.css @@ -5,7 +5,7 @@ } -#separator { +.separator { cursor: col-resize; background-color: #3e3e3e; background-image: url("data:image/svg+xml;utf8,"); @@ -32,4 +32,10 @@ width: 0; height: 100%; min-width: 10px; +} + +#third { + width: 0; + height: 100%; + min-width: 10px; } \ No newline at end of file diff --git a/WebSocketClient/style/style.css b/WebSocketClient/style/style.css index d97cd09..4e6a3a8 100644 --- a/WebSocketClient/style/style.css +++ b/WebSocketClient/style/style.css @@ -107,6 +107,7 @@ dialog { color: white; position: relative; width: 100%; + height: 100%; & .text { line-height: 1.6;