-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Update frame to put suggestions at the bottom #42997
Merged
cchaos
merged 9 commits into
elastic:feature/lens
from
cchaos:feature/lens/design-layout
Aug 9, 2019
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
342b009
Update frame to put suggestions at the bottom
587cd80
Keep suggestions panel under viz panel
d702d0a
Fix up some min-widths and padding
8281629
Fix overflow of viz panel and sizing of suggestions
27885a5
fix casing
f6e7e70
assert content of tooltip components
flash1293 144fbca
Merge pull request #8 from flash1293/fix-suggestion-tests
cchaos 4d7fc88
More vars
4342a18
Remove commented out code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
58 changes: 48 additions & 10 deletions
58
x-pack/legacy/plugins/lens/public/editor_frame_plugin/editor_frame/suggestion_panel.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 |
---|---|---|
@@ -1,21 +1,59 @@ | ||
.lnsSidebar__suggestions { | ||
> * { | ||
margin-top: $euiSizeS; | ||
// SASSTODO: Create this in EUI | ||
@mixin lnsOverflowShadowHorizontal { | ||
$hideHeight: $euiScrollBarCorner * 1.25; | ||
mask-image: linear-gradient(to right, | ||
transparentize(red, .9) 0%, | ||
transparentize(red, 0) $hideHeight, | ||
transparentize(red, 0) calc(100% - #{$hideHeight}), | ||
transparentize(red, .9) 100% | ||
); | ||
} | ||
|
||
.lnsSuggestionsPanel__title { | ||
margin: $euiSizeS 0 $euiSizeXS; | ||
} | ||
|
||
.lnsSuggestionsPanel__suggestions { | ||
@include euiScrollBar; | ||
@include lnsOverflowShadowHorizontal; | ||
padding-top: $euiSizeXS; | ||
overflow-x: auto; | ||
overflow-y: hidden; | ||
display: flex; | ||
|
||
// Padding / negative margins to make room for overflow shadow | ||
padding-left: $euiSizeXS; | ||
margin-left: -$euiSizeXS; | ||
|
||
// Add margin to the next of the same type | ||
> * + * { | ||
margin-left: $euiSizeS; | ||
} | ||
} | ||
|
||
$suggestionHeight: 120px; | ||
// These sizes also match canvas' page thumbnails for consistency | ||
$lnsSuggestionHeight: 100px; | ||
$lnsSuggestionWidth: 150px; | ||
|
||
.lnsSuggestionPanel__button { | ||
flex: 0 0 auto; | ||
width: $lnsSuggestionWidth !important; | ||
height: $lnsSuggestionHeight; | ||
// Allows the scrollbar to stay flush to window | ||
margin-bottom: $euiSize; | ||
} | ||
|
||
.lnsSidebar__suggestionIcon { | ||
color: $euiColorDarkShade; | ||
width: 100%; | ||
height: $suggestionHeight; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: $euiSize; | ||
padding: $euiSizeS; | ||
} | ||
|
||
.lnsSuggestionChartWrapper { | ||
height: $suggestionHeight; | ||
pointer-events: none; | ||
} | ||
.lnsSuggestionChartWrapper { | ||
height: $lnsSuggestionHeight - $euiSize; | ||
pointer-events: none; | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice. Made an issue so we remember.
elastic/eui#2215
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY!