Skip to content
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

[Backport 2.x] [Multiple datasource] Adjust the padding size for aggregated view #6896

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/6715.yml
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
Expand Up @@ -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;
}
}

Expand All @@ -31,6 +36,7 @@
overflow: hidden;
white-space: nowrap;
display: inline-block;
padding-left: 0;
}
}

Expand All @@ -39,4 +45,22 @@
align-items: center;
justify-content: center;
}

.dataSourceAggregatedViewOuiFlexItem {
color: grey;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: inline-block;
padding-left: 0;
}

.dataSourceListAllActiveOuiFlexItem {
color: grey;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: inline-block;
padding-left: 1em;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ export class DataSourceAggregatedView extends React.Component<
options={items}
renderOption={(option) => (
<DataSourceItem
className={'dataSourceAggregatedView'}
className={
this.props.displayAllCompatibleDataSources
? 'dataSourceAggregatedView'
: 'dataSourceListAllActive'
}
option={option}
defaultDataSource={this.state.defaultDataSource}
/>
Expand Down
Loading