From 97b30b1a6508dfd8442909a9fdb204b413ae38e9 Mon Sep 17 00:00:00 2001 From: AliceBalfanz Date: Thu, 13 Aug 2020 10:32:31 +0200 Subject: [PATCH] some styling --- src/renderer/containers/LayersPanel.tsx | 2 - src/renderer/containers/OperationsPanel.tsx | 2 +- src/renderer/containers/StylesPanel.tsx | 63 +++++----- src/renderer/containers/WorkspacePanel.tsx | 128 +++++++++++--------- 4 files changed, 106 insertions(+), 89 deletions(-) diff --git a/src/renderer/containers/LayersPanel.tsx b/src/renderer/containers/LayersPanel.tsx index af83d08..6acdf80 100644 --- a/src/renderer/containers/LayersPanel.tsx +++ b/src/renderer/containers/LayersPanel.tsx @@ -207,7 +207,6 @@ class LayersPanel extends React.Component diff --git a/src/renderer/containers/OperationsPanel.tsx b/src/renderer/containers/OperationsPanel.tsx index e1ddaf8..767cd36 100644 --- a/src/renderer/containers/OperationsPanel.tsx +++ b/src/renderer/containers/OperationsPanel.tsx @@ -148,7 +148,7 @@ class OperationsPanel extends React.Component Add a new operation step to
the workspace's workflow} + tooltipContent={Add a new operation step to
the workspace's workflow
} intent={Intent.PRIMARY} onClick={this.handleAddOperationStepButtonClicked} disabled={!canAddStepOperation} diff --git a/src/renderer/containers/StylesPanel.tsx b/src/renderer/containers/StylesPanel.tsx index 6fa7e11..251f23c 100644 --- a/src/renderer/containers/StylesPanel.tsx +++ b/src/renderer/containers/StylesPanel.tsx @@ -1,4 +1,4 @@ -import { connect, DispatchProp } from 'react-redux'; +import {connect, DispatchProp} from 'react-redux'; import { ColorMapCategoryState, ColorMapState, @@ -15,8 +15,8 @@ import { VectorLayerState } from '../state'; import * as React from 'react'; -import { NO_ENTITY_FOR_STYLE, NO_LAYER_FOR_STYLE } from '../messages'; -import { SubPanelHeader } from '../components/SubPanelHeader'; +import {NO_ENTITY_FOR_STYLE, NO_LAYER_FOR_STYLE} from '../messages'; +import {SubPanelHeader} from '../components/SubPanelHeader'; import { AnchorButton, Button, @@ -38,18 +38,18 @@ import { } from '@blueprintjs/core'; import * as actions from '../actions'; import * as selectors from '../selectors'; -import { NumericRangeField } from '../components/field/NumericRangeField'; -import { FieldValue } from '../components/field/Field'; -import { ListBox, ListBoxSelectionMode } from '../components/ListBox'; -import { TextField } from '../components/field/TextField'; +import {NumericRangeField} from '../components/field/NumericRangeField'; +import {FieldValue} from '../components/field/Field'; +import {ListBox, ListBoxSelectionMode} from '../components/ListBox'; +import {TextField} from '../components/field/TextField'; import SketchPicker from 'react-color/lib/components/sketch/Sketch'; -import { ColorState } from 'react-color'; -import { SimpleStyle } from '../../common/geojson-simple-style'; -import { NumericField } from '../components/field/NumericField'; -import { ViewState } from '../components/ViewState'; +import {ColorState} from 'react-color'; +import {SimpleStyle} from '../../common/geojson-simple-style'; +import {NumericField} from '../components/field/NumericField'; +import {ViewState} from '../components/ViewState'; import * as Cesium from 'cesium'; -import { getLayerDisplayName } from '../state-util'; -import { ToolButton } from '../components/ToolButton'; +import {getLayerDisplayName} from '../state-util'; +import {ToolButton} from '../components/ToolButton'; function getDisplayFractionDigits(min: number, max: number) { const n = Math.round(Math.log10(max - min)); @@ -230,12 +230,15 @@ class StylesPanel extends React.Component - +
@@ -632,13 +635,13 @@ class StylesPanel extends React.Component { - return actions.updateLayer(this.props.activeView.id, imageLayer, { - displayMin: statistics.min, - displayMax: statistics.max, - statistics - }); - } + (statistics) => { + return actions.updateLayer(this.props.activeView.id, imageLayer, { + displayMin: statistics.min, + displayMax: statistics.max, + statistics + }); + } ) as any); } @@ -710,12 +713,12 @@ class StylesPanel extends React.Component' - : workspace.baseDir.split(/[\\/]/).pop(); + ? '' + : workspace.baseDir.split(/[\\/]/).pop(); const workspaceLabel = ( {workspaceName} @@ -269,16 +270,21 @@ class WorkspacePanel extends React.PureComponent ); const copyItemButton = ( - + @@ -320,42 +326,52 @@ class WorkspacePanel extends React.PureComponent - - + + + + + - - - - {workflowStep ? : null} {isOperationStepSelected - ? - : null} + ? + : null} ); }