Skip to content

Commit

Permalink
Minor improvements to styling and behavior of sidebar UI components.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapets committed Apr 1, 2024
1 parent 295c8f4 commit f5cce09
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
}
.panel {
min-height:300px;
border;1px solid #F0F0F0;
border-left:1px solid #000000;
border-right:1px solid #000000;
border-bottom:1px solid #000000;
background-color:#F0F0F0;
}

Expand Down Expand Up @@ -217,7 +219,7 @@ <h2><b>Nada</b> Sandbox</h2>
</div>
</div>
<div style="display:table-row; width:100%;">
<div style="display:table-cell; width:160px; padding:12px 0px 12px 12px; vertical-align:top; font-size:12px; font-weight:bold;">
<div style="display:table-cell; position:relative; top:-1px; left:1px; width:160px; padding:0px 0px 12px 5px; vertical-align:top; font-size:12px; font-weight:bold;">
<div class="panel-tab">
<b>Interpreter with Inputs/Outputs</b>
<hr style="margin:4px 0px 4px 0px;"/>
Expand Down Expand Up @@ -328,6 +330,12 @@ <h2><b>Nada</b> Sandbox</h2>
const resp = await new Response(compressedReadableStream);
const blob = await resp.blob();
value = await blob.text(); // For no compression: atob(b64compressed);

// Ensure that none of the example links are highlighted.
const links = document.querySelectorAll('.example-link');
for (let i = 0; i < links.length; i++) {
links[i].classList.remove("example-link-selected");
}
}
this.editor.codeMirror.setValue(value);
}
Expand Down Expand Up @@ -569,8 +577,8 @@ <h2><b>Nada</b> Sandbox</h2>
window.addEventListener('resize', resize, true);

// Initialize and perform an initial update (in case working code is already present).
manager.buildExampleMenu();
manager.buildPermalinkButton();
manager.buildExampleMenu();
manager.loadInitialSource();
resize();
update();
Expand Down

0 comments on commit f5cce09

Please sign in to comment.