Skip to content

Commit

Permalink
fix the styling a little
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Aug 25, 2024
1 parent 97af277 commit a445672
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@
border-bottom: $euiBorderThin;
}
}

.datasetSelector__selectable {
padding: $euiSizeXS;
}
10 changes: 10 additions & 0 deletions src/plugins/data/public/ui/dataset_selector/_dataset_selector.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.datasetSelector {
&__icon {
margin-right: 4px;
}

&__selectable {
width: 365px;
padding: $euiSizeXS;
}
}
1 change: 1 addition & 0 deletions src/plugins/data/public/ui/dataset_selector/_index.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "./dataset_explorer";
@import "./dataset_selector";
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const DatasetSelector = ({
iconSide="right"
onClick={togglePopover}
>
<EuiIcon type={datasetIcon} className="dataSetNavigator__icon" />
<EuiIcon type={datasetIcon} className="datasetSelector__icon" />
{selectedDataset?.title ?? 'Select data'}
</EuiButtonEmpty>
</EuiToolTip>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/data/public/ui/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function createStartContract(
const queryEnhancements = new Map();
return {
IndexPatternSelect: jest.fn(),
DataSetNavigator: jest.fn(), // Add the missing property
SearchBar: jest.fn(),
SuggestionsComponent: jest.fn(), // Add the missing property
Settings: new SettingsMock(
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/ui/query_editor/_query_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}
}

.osdQueryEditor__dataSetNavigatorWrapper {
.osdQueryEditor__datasetSelectorWrapper {
:first-child {
border-bottom: $euiBorderThin !important;
}
Expand Down

0 comments on commit a445672

Please sign in to comment.