diff --git a/src/components/paint-editor/paint-editor.css b/src/components/paint-editor/paint-editor.css index 087c1e82..f5500253 100644 --- a/src/components/paint-editor/paint-editor.css +++ b/src/components/paint-editor/paint-editor.css @@ -150,6 +150,10 @@ $border-radius: 0.25rem; justify-content: space-between; } +.hidden { + display: none; +} + .zoom-controls { display: flex; flex-direction: row-reverse; diff --git a/src/components/paint-editor/paint-editor.jsx b/src/components/paint-editor/paint-editor.jsx index ed373319..771bf79e 100644 --- a/src/components/paint-editor/paint-editor.jsx +++ b/src/components/paint-editor/paint-editor.jsx @@ -35,6 +35,7 @@ import StrokeWidthIndicatorComponent from '../../containers/stroke-width-indicat import TextMode from '../../containers/text-mode.jsx'; import Formats from '../../lib/format'; +import {isVector} from '../../lib/format'; import layout from '../../lib/layout-constants'; import styles from './paint-editor.css'; @@ -342,7 +343,7 @@ const PaintEditorComponent = props => {
{/* Modes */} {props.canvas !== null ? ( // eslint-disable-line no-negated-condition -
+
@@ -408,7 +409,7 @@ const PaintEditorComponent = props => { }
- {props.format === Formats.VECTOR ? + {isVector(props.format) ?