|
@@ -65,7 +65,9 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|
|
const toolbar = createSplittedClassName({ splitted, className: 'toolbar' });
|
|
const toolbar = createSplittedClassName({ splitted, className: 'toolbar' });
|
|
|
const toolbarItem = createSplittedClassName({ splitted, className: 'toolbar-item' });
|
|
const toolbarItem = createSplittedClassName({ splitted, className: 'toolbar-item' });
|
|
|
const toolbarHeader = createSplittedClassName({ splitted, className: 'toolbar-header' });
|
|
const toolbarHeader = createSplittedClassName({ splitted, className: 'toolbar-header' });
|
|
|
- const timepickerClasses = createSplittedClassName({ splitted, className: 'toolbar-content-item timepicker' });
|
|
|
|
|
|
|
+ const toolbarContent = createSplittedClassName({ splitted, className: 'toolbar-content' });
|
|
|
|
|
+ const toolbarContentItem = createSplittedClassName({ splitted, className: 'toolbar-content-item' });
|
|
|
|
|
+ const timepickerClasses = createSplittedClassName({ splitted, className: 'timepicker toolbar-content-item' });
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className={toolbar}>
|
|
<div className={toolbar}>
|
|
@@ -79,11 +81,6 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|
|
</a>
|
|
</a>
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="toolbar-header-datasource large-screens">
|
|
|
|
|
- <div className="datasource-picker">
|
|
|
|
|
- {!datasourceMissing && !splitted ? createDatasourcePicker(this.props) : null}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
<div className="toolbar-header-close">
|
|
<div className="toolbar-header-close">
|
|
|
{exploreId === 'right' && (
|
|
{exploreId === 'right' && (
|
|
|
<a onClick={this.props.onCloseSplit}>
|
|
<a onClick={this.props.onCloseSplit}>
|
|
@@ -94,19 +91,14 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className={toolbarItem}>
|
|
<div className={toolbarItem}>
|
|
|
- {!datasourceMissing && splitted ? (
|
|
|
|
|
- <div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
|
|
|
|
- ) : null}
|
|
|
|
|
- </div>
|
|
|
|
|
- <div className={toolbarItem}>
|
|
|
|
|
- <div className="toolbar-content">
|
|
|
|
|
- {!datasourceMissing && !splitted ? (
|
|
|
|
|
- <div className="toolbar-content-item small-screens">
|
|
|
|
|
|
|
+ <div className={toolbarContent}>
|
|
|
|
|
+ {!datasourceMissing ? (
|
|
|
|
|
+ <div className={toolbarContentItem}>
|
|
|
<div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
|
<div className="datasource-picker">{createDatasourcePicker(this.props)}</div>
|
|
|
</div>
|
|
</div>
|
|
|
) : null}
|
|
) : null}
|
|
|
{exploreId === 'left' && !splitted ? (
|
|
{exploreId === 'left' && !splitted ? (
|
|
|
- <div className="toolbar-content-item">
|
|
|
|
|
|
|
+ <div className={toolbarContentItem}>
|
|
|
{createResponsiveButton({
|
|
{createResponsiveButton({
|
|
|
splitted,
|
|
splitted,
|
|
|
title: 'Split',
|
|
title: 'Split',
|
|
@@ -116,12 +108,12 @@ export class ExploreToolbar extends PureComponent<Props, {}> {
|
|
|
</div>
|
|
</div>
|
|
|
) : null}
|
|
) : null}
|
|
|
<div className={timepickerClasses}>{timepicker}</div>
|
|
<div className={timepickerClasses}>{timepicker}</div>
|
|
|
- <div className="toolbar-content-item">
|
|
|
|
|
|
|
+ <div className={toolbarContentItem}>
|
|
|
<button className="btn navbar-button navbar-button--no-icon" onClick={this.props.onClearAll}>
|
|
<button className="btn navbar-button navbar-button--no-icon" onClick={this.props.onClearAll}>
|
|
|
Clear All
|
|
Clear All
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
- <div className="toolbar-content-item">
|
|
|
|
|
|
|
+ <div className={toolbarContentItem}>
|
|
|
{createResponsiveButton({
|
|
{createResponsiveButton({
|
|
|
splitted,
|
|
splitted,
|
|
|
title: 'Run Query',
|
|
title: 'Run Query',
|