Skip to content

Commit

Permalink
Some nits
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jul 31, 2024
1 parent 9c96ed1 commit 0dcc704
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,6 @@ export const TextBasedLanguagesEditor = memo(function TextBasedLanguagesEditor({
wrappingIndent: 'none',
};

codeEditorOptions.overviewRulerLanes = 4;
codeEditorOptions.hideCursorInOverviewRuler = false;
codeEditorOptions.overviewRulerBorder = true;

const editorPanel = (
<>
{Boolean(editorIsInline) && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export interface QueryBarTopRowProps<QT extends Query | AggregateQuery = Query>
onTextLangQueryChange: (query: AggregateQuery) => void;
submitOnBlur?: boolean;
renderQueryInputAppend?: () => React.ReactNode;
disableExternalPadding?: boolean;
}

export const SharingMetaFields = React.memo(function SharingMetaFields({
Expand Down Expand Up @@ -777,7 +778,9 @@ export const QueryBarTopRow = React.memo(
responsive={false}
gutterSize="s"
css={css`
padding: ${isQueryLangSelected ? euiTheme.size.s : 0};
padding: ${isQueryLangSelected && !props.disableExternalPadding
? euiTheme.size.s
: 0};
`}
justifyContent={shouldShowDatePickerAsBadge() ? 'flexStart' : 'flexEnd'}
wrap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ class SearchBarUI<QT extends (Query | AggregateQuery) | Query = Query> extends C
submitOnBlur={this.props.submitOnBlur}
suggestionsAbstraction={this.props.suggestionsAbstraction}
renderQueryInputAppend={this.props.renderQueryInputAppend}
disableExternalPadding={this.props.displayStyle === 'withBorders'}
/>
</div>
);
Expand Down

0 comments on commit 0dcc704

Please sign in to comment.