Skip to content

Commit

Permalink
Added max-height of 50% to variables pane.
Browse files Browse the repository at this point in the history
Closes #462.
  • Loading branch information
imolorhe committed Dec 1, 2018
1 parent 9423e87 commit 87d5894
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[options]="editorConfig"
></ngx-codemirror>
</div>
<div class="variables-editor-container">
<div class="variables-editor-container" [ngClass]="{ 'show-variables': showVariableDialog }">
<div class="variables-editor--title" track-id="toggle_variables" (click)="toggleVariableDialog.next($event)">{{ 'VARIABLES_TEXT' | translate }}</div>
<div class="variables-editor-inner" *ngIf="showVariableDialog">
<app-variables-editor
Expand Down
20 changes: 19 additions & 1 deletion src/scss/components/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ app-query-editor {
color: var(--theme-off-font-color);
}

.variables-editor-container {
display: flex;
flex-direction: column;
max-height: 50%;
&.show-variables {
min-height: 50%;
}
}
.variables-editor {
&--title {
text-transform: uppercase;
Expand All @@ -158,4 +166,14 @@ app-query-editor {
// &-inner {
// height: 0;
// }
}
}
.variables-editor-inner {
position: relative;
overflow: auto;
flex: 1;
}
.set-variable-textarea {
position: absolute;
width: 100%;
height: 100%;
}

0 comments on commit 87d5894

Please sign in to comment.