mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +00:00
Add filter button on the right bottom
This commit is contained in:
@@ -95,22 +95,15 @@ export default class CombiningFilterEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ marginBottom: margins[2] }}>
|
<div style={{ marginBottom: margins[1] }}>
|
||||||
<DocLabel
|
<DocLabel
|
||||||
label={"Compound Filter"}
|
label={"Compound Filter"}
|
||||||
doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."}
|
doc={GlSpec.layer.filter.doc + " Combine multiple filters together by using a compound filter."}
|
||||||
style={{
|
style={{
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
width: '30%',
|
width: '49%',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button onClick={this.addFilterItem.bind(this)} style={{
|
|
||||||
display: 'inline-block',
|
|
||||||
width: '18%',
|
|
||||||
marginRight: '2%',
|
|
||||||
}}>
|
|
||||||
Add filter
|
|
||||||
</Button>
|
|
||||||
<SelectInput
|
<SelectInput
|
||||||
value={combiningOp}
|
value={combiningOp}
|
||||||
onChange={this.onFilterPartChanged.bind(this, 0)}
|
onChange={this.onFilterPartChanged.bind(this, 0)}
|
||||||
@@ -122,6 +115,15 @@ export default class CombiningFilterEditor extends React.Component {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{editorBlocks}
|
{editorBlocks}
|
||||||
|
<div style={{marginTop: margins[1]}}>
|
||||||
|
<Button onClick={this.addFilterItem.bind(this)} style={{
|
||||||
|
display: 'inline-block',
|
||||||
|
marginLeft: '79%',
|
||||||
|
width: '20%',
|
||||||
|
}}>
|
||||||
|
Add filter
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user