Skip to content

Commit

Permalink
move label to center, similar to ramps
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Dec 26, 2019
1 parent c00ad5f commit 704be5c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ export class DynamicColorProperty extends DynamicStyleProperty {
return (
<div>
<EuiSpacer size="s" />
<EuiFlexGroup gutterSize="xs" justifyContent="spaceBetween">
<EuiFlexGroup direction={'column'}>
{this._renderColorbreaks({
isPointsOnly,
isLinesOnly,
symbolId,
})}
</EuiFlexGroup>
<EuiFlexGroup gutterSize="xs" justifyContent="spaceAround">
<EuiFlexItem grow={false}>
<EuiToolTip position="top" title={this.getDisplayStyleName()} content={fieldLabel}>
<EuiText className="eui-textTruncate" size="xs" style={{ maxWidth: '180px' }}>
Expand All @@ -222,13 +229,6 @@ export class DynamicColorProperty extends DynamicStyleProperty {
</EuiToolTip>
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup direction={'column'}>
{this._renderColorbreaks({
isPointsOnly,
isLinesOnly,
symbolId,
})}
</EuiFlexGroup>
</div>
);
}
Expand Down

0 comments on commit 704be5c

Please sign in to comment.