mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 21:40:01 +00:00
fix: fix filter-editor style (#1114)
Include before/after visuals or gifs if this PR includes visual changes. ### Before  ### After  --------- Co-authored-by: Harel M <harel.mazor@gmail.com>
This commit is contained in:
@@ -11,6 +11,9 @@ class FilterEditorBlockInternal extends React.Component<FilterEditorBlockInterna
|
|||||||
render() {
|
render() {
|
||||||
const t = this.props.t;
|
const t = this.props.t;
|
||||||
return <div className="maputnik-filter-editor-block">
|
return <div className="maputnik-filter-editor-block">
|
||||||
|
<div className="maputnik-filter-editor-block-content">
|
||||||
|
{this.props.children}
|
||||||
|
</div>
|
||||||
<div className="maputnik-filter-editor-block-action">
|
<div className="maputnik-filter-editor-block-action">
|
||||||
<InputButton
|
<InputButton
|
||||||
className="maputnik-delete-filter"
|
className="maputnik-delete-filter"
|
||||||
@@ -20,9 +23,6 @@ class FilterEditorBlockInternal extends React.Component<FilterEditorBlockInterna
|
|||||||
<MdDelete />
|
<MdDelete />
|
||||||
</InputButton>
|
</InputButton>
|
||||||
</div>
|
</div>
|
||||||
<div className="maputnik-filter-editor-block-content">
|
|
||||||
{this.props.children}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,26 +14,18 @@
|
|||||||
color: vars.$color-lowgray;
|
color: vars.$color-lowgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-filter-editor-property {
|
.maputnik-filter-editor-single {
|
||||||
display: inline-block;
|
display: flex;
|
||||||
width: 25%;
|
column-gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-filter-editor-operator {
|
.maputnik-filter-editor-operator {
|
||||||
margin: 0 2%;
|
|
||||||
display: inline-block;
|
|
||||||
width: 17%;
|
|
||||||
|
|
||||||
.maputnik-select {
|
.maputnik-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-filter-editor-args {
|
.maputnik-filter-editor-args {
|
||||||
display: inline-block;
|
|
||||||
width: 54%;
|
|
||||||
margin: 0 2%;
|
|
||||||
|
|
||||||
.maputnik-string,
|
.maputnik-string,
|
||||||
.maputnik-number {
|
.maputnik-number {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -67,17 +59,10 @@
|
|||||||
@extend .maputnik-icon-button !optional; /* stylelint-disable-line */
|
@extend .maputnik-icon-button !optional; /* stylelint-disable-line */
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-filter-editor-block-action {
|
.maputnik-filter-editor-block {
|
||||||
margin-top: vars.$margin-2;
|
display: flex;
|
||||||
margin-bottom: vars.$margin-2;
|
column-gap: 6px;
|
||||||
display: inline-block;
|
margin-bottom: 2px;
|
||||||
width: 6%;
|
|
||||||
margin-right: 1.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.maputnik-filter-editor-block-content {
|
|
||||||
display: inline-block;
|
|
||||||
width: 92.5%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-radio-as-button {
|
.maputnik-radio-as-button {
|
||||||
|
|||||||
Reference in New Issue
Block a user