-
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
[Discover] Redesign for the grid, panels and sidebar v1 #165866
Merged
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
6be6936
[Discover] Update grid styles
jughosta 7c27938
[Discover] Update tests
jughosta 72bc5b2
[Discover] Update tests
jughosta 0ac8342
[Discover] Add a comment
jughosta 69ed036
[Discover] Update tests
jughosta 680641b
[Discover] Update tests
jughosta de53757
[Discover] Address review comments
jughosta aca35f3
[Discover] Enable row stripes
jughosta 2c65d30
Merge remote-tracking branch 'upstream/main' into redesign-checkboxes
jughosta bdcbf1d
[Discover] Update header background
jughosta 1c71502
[Discover] Update document view
jughosta 159dcbb
Merge branch 'main' into redesign-checkboxes
jughosta fa58fa3
[Discover] Update jest snapshots
jughosta e575c01
Merge branch 'main' into redesign-checkboxes
jughosta f56a108
[Discover] Remove background from panels
jughosta dbe7a7f
[Discover] Update field list styles
jughosta f5d1996
[Discover] Update Add Field button
jughosta 9a139e3
[Discover] Remove tabs background
jughosta 2eddea6
[Discover] Apply item shadow changes only for discover
jughosta 15693c9
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 604d722
[Discover] Swap checkbox and arrow back
jughosta 7e59c76
[Discover] Update context app layout to remove extra horizontal margin
jughosta 46d813c
[Discover] Add top border to grid controls
jughosta 1820c3a
[Discover] Change how shadow is overriden
jughosta 3ffc0ff
Merge remote-tracking branch 'origin/164661-discover-panels-redesign'…
jughosta 2e783c3
[Discover] Fix tests
jughosta 1f86e50
[Discover] Remove comment
jughosta cd4c90c
Merge branch 'main' into 164661-discover-panels-redesign
jughosta 22637f5
Merge branch 'main' into redesign-checkboxes
jughosta 5cd57a0
Merge branch 'main' into 164661-discover-panels-redesign
jughosta e691ccb
Merge branch '164661-discover-panels-redesign' into discover-redesign-v1
jughosta 4c20cd7
[Discover] Show a drag handle on hover
jughosta ba5267a
[Discover] Reduce space between items
jughosta fcc7a24
[Discover] Update bottom button
jughosta c15f2e4
[Discover] Add collapse/expand buttons
jughosta 296613f
[Discover] Update tests
jughosta 4c5b6e4
[Discover] Rearrange sidebar toggle button
jughosta 25de160
Merge branch 'main' into discover-redesign-v1
jughosta 68bac23
[Discover] Cleanup translations
jughosta 84e11a4
[Discover] Update tests
jughosta a94212a
[Discover] Update tests
jughosta cf1f1bc
[Discover] Fix drag handle theme
jughosta 68c3208
[Discover] Fix sidebar toggle theme
jughosta c8cf870
Merge branch 'main' into discover-redesign-v1
jughosta d8a0666
[Discover] Update tests
jughosta eb0f3d2
Merge remote-tracking branch 'origin/discover-redesign-v1' into disco…
jughosta 20064d6
Merge branch 'main' into discover-redesign-v1
jughosta ab2c54e
[Discover] Update sidebar toggle icons to old ones
jughosta 1d8ae3b
[Discover] Remove sidebar item drag icon
jughosta 47b4595
[Discover] Update padding on Single Document page
jughosta eeb633f
Update src/plugins/discover/public/application/context/context_app.tsx
jughosta ac89e52
[Discover] Remove the border above tabs
jughosta 12f56be
[Discover] Move sidebar toggle logic from discover plugin to unified …
jughosta 84ef775
[Discover] Make bottom button style customizable and fix it for the f…
jughosta f8ff9c5
[Discover] Enable sidebar toggle for example page
jughosta f2171cc
[Discover] Clean up tests
jughosta 6aafce3
Merge branch 'main' into discover-redesign-v1
jughosta f631110
[Discover] Update histogram test
jughosta 44bf5de
Merge branch 'main' into discover-redesign-v1
jughosta 5357b53
Remove some whitespace around the Unified Histogram resize button
davismcphee ddb0795
[Discover] Fix flyout button action
jughosta 4325927
[Discover] Add top level configuration for the compressed view
jughosta b34d3bc
[Discover] Add bottom border for Field Statistics tab
jughosta 1ec4869
Merge pull request #5 from davismcphee/discover-redesign-resize-button
jughosta ee354cd
[Discover] Overwrite item background and cleanup
jughosta 0aaf693
Merge branch 'main' into discover-redesign-v1
jughosta 951fe65
Fix Unified Field List drag styles
davismcphee a93943c
[Discover] Fine tune row controls positioning
jughosta 55daac1
Merge pull request #6 from davismcphee/discover-redesign-drag-fix
jughosta 920ba5b
Merge branch 'main' into discover-redesign-v1
jughosta c824954
Merge branch 'main' into discover-redesign-v1
jughosta dec3d35
[Discover] Make time field column a little wider
jughosta a1173fa
[Discover] Fix row controls on Surrounding Documents page
jughosta b54538e
[Discover] Update test snapshots
jughosta d55d577
Merge branch 'main' into discover-redesign-v1
jughosta ee7807a
Merge branch 'main' into discover-redesign-v1
jughosta 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,32 +3,6 @@ | |
max-width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
border-radius: $euiBorderRadius; | ||
|
||
.euiDataGrid__controls { | ||
border: none; | ||
border-bottom: $euiBorderThin; | ||
} | ||
|
||
.euiDataGridRowCell.euiDataGridRowCell--firstColumn { | ||
border-left: none; | ||
padding: 0; | ||
} | ||
|
||
.euiDataGridRowCell.euiDataGridRowCell--lastColumn { | ||
border-right: none; | ||
} | ||
|
||
.unifiedDataTable__table .euiDataGridRowCell:first-of-type, | ||
.unifiedDataTable__table .euiDataGrid--headerShade.euiDataGrid--bordersAll .euiDataGridHeaderCell:first-of-type { | ||
border-left: none; | ||
border-right: none; | ||
} | ||
|
||
.euiDataGridRowCell:last-of-type, | ||
.euiDataGridHeaderCell:last-of-type { | ||
border-right: none; | ||
} | ||
} | ||
|
||
.unifiedDataTable__cellValue { | ||
|
@@ -57,6 +31,29 @@ | |
flex-direction: column; | ||
flex-wrap: nowrap; | ||
height: 100%; | ||
|
||
.euiDataGrid__content { | ||
background: transparent; | ||
} | ||
|
||
.euiDataGrid__controls { | ||
border-top: $euiBorderThin; | ||
} | ||
|
||
.euiDataGrid--headerUnderline .euiDataGridHeaderCell { | ||
border-bottom: $euiBorderThin; | ||
} | ||
|
||
.euiDataGridRowCell.euiDataGridRowCell--controlColumn[data-gridcell-column-id='openDetails'], | ||
.euiDataGridRowCell.euiDataGridRowCell--controlColumn[data-gridcell-column-id='select'] { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover, | ||
.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover .euiDataGridRowCell__contentByHeight + .euiDataGridRowCell__expandActions { | ||
background-color: tintOrShade($euiColorLightShade, 50%, 0); | ||
} | ||
} | ||
|
||
.unifiedDataTable__table { | ||
|
@@ -65,14 +62,6 @@ | |
min-height: 0; | ||
} | ||
|
||
.unifiedDataTable__footer { | ||
flex-shrink: 0; | ||
background-color: $euiColorLightShade; | ||
padding: $euiSize / 2 $euiSize; | ||
margin-top: $euiSize / 4; | ||
text-align: center; | ||
} | ||
|
||
.unifiedDataTable__flyoutHeader { | ||
white-space: nowrap; | ||
} | ||
|
@@ -118,7 +107,35 @@ | |
@include euiTextTruncate; | ||
} | ||
|
||
.unifiedDataTable__rowControl { | ||
// fine-tuning the vertical alignment with the text for any row height setting | ||
margin-top: -3px; | ||
.euiDataGridRowCell__truncate & { // "Single line" row height setting | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
.unifiedDataTable__descriptionList { | ||
// force the content truncation when "Single line" row height setting is active | ||
.euiDataGridRowCell__truncate & { | ||
-webkit-line-clamp: 1; | ||
display: -webkit-box; | ||
-webkit-box-orient: vertical; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
.unifiedDataTable__descriptionListTitle { | ||
margin-inline: 0 0; | ||
padding-inline: 0; | ||
background: transparent; | ||
font-weight: $euiFontWeightBold; | ||
} | ||
|
||
.unifiedDataTable__descriptionListDescription { | ||
margin-inline: $euiSizeS $euiSizeS; | ||
padding-inline: 0; | ||
Comment on lines
+129
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. worth to note that these changes will also resolve #146339 🥳 |
||
word-break: break-all; | ||
white-space: normal; | ||
|
||
|
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
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.
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.
@davismcphee helped here to improve the view of a dragging item on Discover jughosta#6