Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: yujin-emma <[email protected]>
  • Loading branch information
yujin-emma committed May 3, 2024
1 parent 81af4e4 commit cd26af5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@

.euiSelectableListItem__content {
cursor: default;
padding-left: 0%;
padding-left: 0;
margin-right: 0;


.euiSelectableListItem__text {
max-height: 100%;
}
.euiSelectableListItem__icon, .euiSelectableListItem__prepend {
margin-right: 0;
}


}

.dataSourceAggregatedViewOuiFlexGroup {
Expand All @@ -32,6 +38,7 @@
overflow: hidden;
white-space: nowrap;
display: inline-block;
padding-left: 0%;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ export class DataSourceAggregatedView extends React.Component<
options={items}
renderOption={(option) => (
<DataSourceItem
className={'dataSourceAggregatedView'}
className={
!this.props.displayAllCompatibleDataSources
? 'dataSourceListAllActive'
: 'dataSourceAggregatedView'
}
option={option}
defaultDataSource={this.state.defaultDataSource}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.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 @@ -5,6 +5,7 @@
import React from 'react';
import { EuiBadge, EuiFlexItem, EuiFlexGroup } from '@elastic/eui';
import { DataSourceOption } from '../data_source_menu/types';
import './data_source_item.scss';

interface DataSourceItemProps {
className: string;
Expand Down

0 comments on commit cd26af5

Please sign in to comment.