forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Canvas] Improvements to Expression Editor (elastic#32336) (elastic#3…
…2679) * Added font size controls and expand/shrink button to expression editor * style the expression editor controls * Removed debug code
- Loading branch information
Showing
8 changed files
with
153 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
x-pack/plugins/canvas/public/components/expression/expression.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.canvasExpression--compactSize { | ||
max-height: 480px; | ||
} | ||
|
||
.canvasExpression--controls { | ||
position: absolute; | ||
right: $euiSizeXL; | ||
top: $euiSizeL; | ||
} | ||
|
||
.canvasExpression--fullSize { | ||
height: calc(100vh - 200px); // space for global nav and autocomplete popup | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.expressionInput { | ||
flex-grow: 1; | ||
} | ||
|
||
.expressionInput--inner { | ||
height: 100%; | ||
} | ||
|
||
.canvasExpression--settings { | ||
flex-grow: 0; | ||
} | ||
|
||
.canvasTextArea--code { | ||
height: 100%; | ||
padding-right: $euiSizeXXL; | ||
} | ||
|
||
.autocomplete { | ||
flex-grow: 1; | ||
|
||
.canvasAutocomplete--inner { | ||
height: 100%; | ||
} | ||
} | ||
|
||
.autocompletePopup { | ||
top: -102px; | ||
height: 100px; | ||
} | ||
|
||
.autocompleteItems, | ||
.autocompleteReference { | ||
height: 98px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.canvasTray { | ||
max-height: 400px; | ||
flex-direction: column; | ||
@include euiBottomShadowFlat; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters