-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Multiple datasource] Adjust the padding size for aggregated view #6715
Changes from all commits
e3a8a21
b51db9e
f701566
555acd5
1b09d37
e8776fe
ab37eb2
1bbabe2
620d852
077298f
d435cca
e4b74a1
49ae21f
d091efe
cae2a3f
bead9ae
e8715b3
1beabfb
18d1b1d
1f68fea
297eaa5
57ca1ab
9560ca0
9971d4f
f50addd
f7130d2
09d09a0
0891292
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fix: | ||
- Adjust the padding size for aggregated view ([#6715](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6715)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,15 @@ | |
|
||
.euiSelectableListItem__content { | ||
cursor: default; | ||
padding-left: 0; | ||
margin-right: 0; | ||
|
||
|
||
.euiSelectableListItem__text { | ||
max-height: 100%; | ||
max-height: 100%; | ||
} | ||
.euiSelectableListItem__icon, .euiSelectableListItem__prepend { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
|
@@ -31,6 +36,7 @@ | |
overflow: hidden; | ||
white-space: nowrap; | ||
display: inline-block; | ||
padding-left: 0; | ||
} | ||
} | ||
|
||
|
@@ -39,4 +45,22 @@ | |
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.dataSourceAggregatedViewOuiFlexItem { | ||
color: grey; | ||
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. should we use the oui color guide? 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. I tried to refer to the guides here: https://oui.opensearch.org/1.6/#/guidelines/colors and updated to |
||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
display: inline-block; | ||
padding-left: 0; | ||
} | ||
|
||
.dataSourceListAllActiveOuiFlexItem { | ||
color: grey; | ||
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. same as above |
||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
display: inline-block; | ||
padding-left: 1em; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,7 +233,11 @@ export class DataSourceAggregatedView extends React.Component< | |
options={items} | ||
renderOption={(option) => ( | ||
<DataSourceItem | ||
className={'dataSourceAggregatedView'} | ||
className={ | ||
this.props.displayAllCompatibleDataSources | ||
? 'dataSourceAggregatedView' | ||
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. just checking due to naming. but it seems like on line 242 if but in this logic its 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. Hi, Rocky, I confirm the logic here is when : |
||
: 'dataSourceListAllActive' | ||
} | ||
option={option} | ||
defaultDataSource={this.state.defaultDataSource} | ||
/> | ||
|
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.
Should be an extra line between .euiSelectableListItem__icon, and .euiSelectableListItem__text