Skip to content

Commit

Permalink
Merge pull request #35 from JetBrains/fix-console
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPrendota committed Nov 15, 2018
2 parents 55eec7b + f1dfbd8 commit 27eba28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/executable-code/executable-fragment.js
Expand Up @@ -24,7 +24,7 @@ const KEY_CODES = {
const DEBOUNCE_TIME = 500;

const SELECTORS = {
CANVAS_PLACEHOLDER_OUTPUT: ".js-code-output-canvas-placeholder",
CANVAS_PLACEHOLDER_OUTPUT: ".js-code-output-executor",
FOLD_BUTTON: ".fold-button",
UNMODIFIABLE_LINE_DARK: "unmodifiable-line-dark",
UNMODIFIABLE_LINE: "unmodifiable-line",
Expand Down Expand Up @@ -230,7 +230,7 @@ export default class ExecutableFragment extends ExecutableCodeTemplate {
if (targetPlatform === TargetPlatform.CANVAS) {
this.jsExecutor.reloadIframeScripts(jsLibs, this.getNodeForMountIframe(TargetPlatform.CANVAS));
}
this.update({output: "", openConsole: false});
this.update({output: "", openConsole: false, exception: null});
if (onCloseConsole) onCloseConsole();
}

Expand Down
8 changes: 4 additions & 4 deletions src/executable-code/executable-fragment.monk
Expand Up @@ -14,10 +14,10 @@
{% endif %}
<textarea></textarea>
</div>
{% if (openConsole) %}
<div class="console-close {{ theme }}" :onclick={{ this.onConsoleCloseButtonEnter.bind(this) }}></div>
{% endif %}
<div class="js-code-output-canvas-placeholder">
<div class="js-code-output-executor">
{% if (openConsole) %}
<div class="console-close {{ theme }}" :onclick={{ this.onConsoleCloseButtonEnter.bind(this) }}></div>
{% endif %}
{% if (waitingForOutput) %}
<div class="output-wrapper {{ theme }}">
<div class="loader {{ theme }}"></div>
Expand Down
1 change: 0 additions & 1 deletion src/js-executor/index.scss
@@ -1,6 +1,5 @@
.k2js-iframe {
display: none;
padding-top: 2px
}
iframe {
border: none;
Expand Down
19 changes: 10 additions & 9 deletions src/styles.scss
Expand Up @@ -29,6 +29,7 @@ $wt-color-azure: #167dff;

.executable-fragment {
border: 1px solid $wt-color-athens;
border-bottom-width: 0;
}

.hidden-dependency {
Expand Down Expand Up @@ -109,9 +110,8 @@ $wt-color-azure: #167dff;
height: 20px;
width: 16px;
cursor: pointer;
background: url("img/run.svg");
background-size: cover;
background-repeat: no-repeat;
background: url("img/run.svg") no-repeat;

&._disabled {
cursor: default;
Expand Down Expand Up @@ -209,8 +209,13 @@ $wt-color-azure: #167dff;
padding-bottom: 2px;
}

.output-wrapper {
.js-code-output-executor {
border-top: 1px solid $wt-color-athens;
position: relative;
}

.output-wrapper {
border-bottom: 1px solid $wt-color-athens;
min-height: 60px;
font-size: 14px;
background-color: white;
Expand Down Expand Up @@ -262,11 +267,10 @@ $wt-color-azure: #167dff;

.console-close {
position: absolute;
right: 1px;
margin-top: 1px;
right: 0;
width: 16px;
height: 16px;
background: $wt-color-silver url('img/close-console-icon.svg');
background: $wt-color-silver url('img/close-console-icon.svg') no-repeat;
}

.console-close.darcula {
Expand Down Expand Up @@ -396,9 +400,6 @@ $wt-color-azure: #167dff;
}
}

.executable-fragment-wrapper {
}

.CodeMirror-hints {
padding-left: 0 !important;
border: 1px solid $wt-color-silver;
Expand Down

0 comments on commit 27eba28

Please sign in to comment.