-
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
[ML] Data Frame Analytics: Fix confusion matrix data grid width. #65818
Changes from 2 commits
5dd76c8
b5ebbd9
de5e1c0
248bd34
fc67d76
a6fd891
7905eec
5dfeff6
d67b062
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@import 'pages/analytics_exploration/components/regression_exploration/index'; | ||
@import 'pages/analytics_exploration/components/classification_exploration/index'; | ||
@import 'pages/analytics_management/components/analytics_list/index'; | ||
@import 'pages/analytics_management/components/create_analytics_form/index'; | ||
@import 'pages/analytics_management/components/create_analytics_flyout/index'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
.euiFormRow.mlDataFrameAnalyticsClassification__actualLabel { | ||
padding-top: $euiSize * 4; | ||
/* Workaround for EuiDataGrid within a Flex Layout */ | ||
.mlDataFrameAnalyticsClassification { | ||
width: calc(100% - 0px); | ||
} | ||
|
||
.mlDataFrameAnalyticsClassification__confusionMatrix { | ||
padding: 0 5%; | ||
} | ||
|
||
.mlDataFrameAnalyticsClassification__actualLabel { | ||
min-width: 70px; | ||
padding-top: $euiSize * 4.2; | ||
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. why 4.2? 🤔 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. 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. have you tried to make it as 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. Hm not sure that would be feasible to do: The header row is rendered by |
||
} | ||
|
||
/* EuiDataGrid needs a minWidth of 480px, otherwise the columns options will disappear if you hide all columns. */ | ||
.mlDataFrameAnalyticsClassification__dataGridMinWidth { | ||
min-width: 480px; | ||
width: 90%; | ||
} |
This file was deleted.
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.
why do you need
calc
here? also, keep in mind it's not supported by IE11 properly https://caniuse.com/#feat=calcThere 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.
The
calc
is used to work around an issue withEuiDataGrid
and percentage based width of the wrapping container when used in flex layouts. The original issue in the EUI repo is here: elastic/eui#2618calc
in IE has limitations but this one should work hopefully. I cannot test it at the moment because it seems Kibana is broken for IE11 onmaster
. Will try again once I hear back from QA team.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.
Managed to test in IE. Pushed some fixes in de5e1c0 and updated the PR description with before and after screenshots.
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.
After the refactor to not use flex anymore for the layout, the
calc()
is no longer necessary. Removed in 7905eec.