Commit f39fd765 by Torkel Ödegaard

wip: minor style changes

parent 666e8e83
......@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
import { getAngularLoader, AngularComponent } from 'app/core/services/AngularLoader';
// Components
import { EditorTabBody, EditorToolBarView } from './EditorTabBody';
import { EditorTabBody } from './EditorTabBody';
import { VizTypePicker } from './VizTypePicker';
import { FadeIn } from 'app/core/components/Animations/FadeIn';
......@@ -197,18 +197,9 @@ export class VisualizationTab extends PureComponent<Props, State> {
render() {
const { plugin } = this.props;
const { isVizPickerOpen, searchQuery } = this.state;
const toolbarItems: EditorToolBarView[] = [];
if (!isVizPickerOpen) {
toolbarItems.push({
title: '',
icon: 'fa fa-question',
render: () => <h2>Help</h2>,
});
}
return (
<EditorTabBody heading="Visualization" renderToolbar={this.renderToolbar} toolbarItems={toolbarItems}>
<EditorTabBody heading="Visualization" renderToolbar={this.renderToolbar}>
<>
<FadeIn in={isVizPickerOpen} duration={200} unmountOnExit={true}>
<VizTypePicker
......
......@@ -21,10 +21,10 @@
display: none;
}
&.json-formatter-object::after {
content: "No properties";
content: 'No properties';
}
&.json-formatter-array::after {
content: "[]";
content: '[]';
}
}
}
......@@ -33,7 +33,9 @@
color: $json-explorer-string-color;
white-space: normal;
word-wrap: break-word;
word-break: break-all;
}
.json-formatter-number {
color: $json-explorer-number-color;
}
......@@ -87,7 +89,7 @@
&::after {
display: inline-block;
transition: transform $json-explorer-rotate-time ease-in;
content: "►";
content: '►';
}
}
......
......@@ -132,8 +132,7 @@
}
.viz-picker {
background: $toolbar-bg;
margin: -40px -20px 40px -20px;
margin-top: -40px;
padding: 20px;
position: relative;
}
......@@ -144,8 +143,8 @@
}
.viz-picker__item {
background: $panel-editor-viz-item-bg;
border: $panel-editor-viz-item-border;
background: $panel-bg;
border: $panel-border;
border-radius: 3px;
height: 100px;
width: 150px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment