diff --git a/src/DefaultEditor.js b/src/DefaultEditor.js
index 365bc6bcb..3f8a2c675 100644
--- a/src/DefaultEditor.js
+++ b/src/DefaultEditor.js
@@ -73,13 +73,13 @@ class DefaultEditor extends Component {
{logo ? logo : null}
- {this.hasTransforms() && }
+ {this.hasTransforms() && }
{this.hasAxes() && }
{this.hasColorbars() && }
-
+
{this.hasSliders() && }
diff --git a/src/components/fields/RectanglePositioner.js b/src/components/fields/RectanglePositioner.js
index f092c2c63..c14478b34 100644
--- a/src/components/fields/RectanglePositioner.js
+++ b/src/components/fields/RectanglePositioner.js
@@ -6,7 +6,7 @@ import ResizableRect from 'react-resizable-rotatable-draggable';
import RadioBlocks from '../widgets/RadioBlocks';
import DualNumeric from './DualNumeric';
-const maxWidth = 286;
+const maxWidth = 276;
const gridRes = 8;
class UnconnectedRectanglePositioner extends Component {
@@ -77,94 +77,96 @@ class UnconnectedRectanglePositioner extends Component {
}
return (
-
-
- this.setState({snap: snap})}
- activeOption={this.state.snap}
- options={[{label: _('On'), value: true}, {label: _('Off'), value: false}]}
- />
-
-
- {Array(gridRes * gridRes)
- .fill(0)
- .map((v, i) => (
-
- ))}
-
{
- this.sendUpdate({
- fieldWidthPx,
- fieldHeightPx,
- width: style.width,
- height: style.height,
- x: style.left,
- y: style.top,
- });
- }}
- onDrag={(deltaX, deltaY) => {
- this.sendUpdate({
- fieldWidthPx,
- fieldHeightPx,
- width,
- height,
- x: left + deltaX,
- y: top + deltaY,
- });
+
+
+
+ this.setState({snap: snap})}
+ activeOption={this.state.snap}
+ options={[{label: _('On'), value: true}, {label: _('Off'), value: false}]}
+ />
+
+
-
- {fullContainer.xaxis && fullContainer.xaxis.overlaying ? (
- ''
- ) : (
-
- )}
- {fullContainer.yaxis && fullContainer.yaxis.overlaying ? (
- ''
- ) : (
-
- )}
-
+ >
+ {Array(gridRes * gridRes)
+ .fill(0)
+ .map((v, i) => (
+
+ ))}
+ {
+ this.sendUpdate({
+ fieldWidthPx,
+ fieldHeightPx,
+ width: style.width,
+ height: style.height,
+ x: style.left,
+ y: style.top,
+ });
+ }}
+ onDrag={(deltaX, deltaY) => {
+ this.sendUpdate({
+ fieldWidthPx,
+ fieldHeightPx,
+ width,
+ height,
+ x: left + deltaX,
+ y: top + deltaY,
+ });
+ }}
+ />
+
+ {fullContainer.xaxis && fullContainer.xaxis.overlaying ? (
+ ''
+ ) : (
+
+ )}
+ {fullContainer.yaxis && fullContainer.yaxis.overlaying ? (
+ ''
+ ) : (
+
+ )}
+
+
);
}
}
diff --git a/src/components/widgets/SymbolSelector.js b/src/components/widgets/SymbolSelector.js
index 687e170bf..6cc947582 100644
--- a/src/components/widgets/SymbolSelector.js
+++ b/src/components/widgets/SymbolSelector.js
@@ -1,7 +1,6 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
-import ModalBox from '../containers/ModalBox';
import {CarretDownIcon} from 'plotly-icons';
export default class SymbolSelector extends Component {
@@ -78,10 +77,7 @@ export default class SymbolSelector extends Component {
{
- this.props.onChange(value);
- this.togglePanel();
- }}
+ onClick={() => this.props.onChange(value)}
>
- {isOpen ? (
-
- {this.renderOptions()}
-
- ) : null}
+ {isOpen && this.renderOptions()}
);
}
diff --git a/src/styles/components/fields/_field.scss b/src/styles/components/fields/_field.scss
index 664d38209..3ca30b05b 100644
--- a/src/styles/components/fields/_field.scss
+++ b/src/styles/components/fields/_field.scss
@@ -40,7 +40,7 @@
align-self: center;
}
&__title {
- width: 30%;
+ width: 80px;
//flex-shrink:0;
padding-left: var(--spacing-half-unit);
display: block;
@@ -89,7 +89,7 @@
border-left: 1px solid;
}
.rect-container {
- margin: var(--spacing-eighth-unit) auto var(--spacing-quarter-unit) auto;
+ margin: 0 auto;
position: relative;
max-width: 294px;
}
diff --git a/src/styles/variables/_layout.scss b/src/styles/variables/_layout.scss
index 8d03afacf..6b979a210 100644
--- a/src/styles/variables/_layout.scss
+++ b/src/styles/variables/_layout.scss
@@ -1,5 +1,5 @@
/*
* Layout
*/
-$layout-panel-width: 345px;
-$layout-sidebar-width: 120px;
+$layout-panel-width: 335px;
+$layout-sidebar-width: 100px;