Fixed data function display issues.

This commit is contained in:
orangemug 2020-02-16 21:56:03 +00:00
parent 94089836bf
commit b7d08dfaa6
3 changed files with 59 additions and 56 deletions

View file

@ -49,8 +49,15 @@ export default class DocLabel extends React.Component {
</div>
</label>
}
else if (label) {
return <label className="maputnik-doc-wrapper">
<div className="maputnik-doc-target">
{label}
</div>
</label>
}
else {
return <div />
<div />
}
}
}

View file

@ -260,6 +260,8 @@ export default class DataProperty extends React.Component {
/>
</div>
</div>
</InputBlock>
</div>
{dataFields}
<Button
className="maputnik-add-stop"
@ -267,8 +269,6 @@ export default class DataProperty extends React.Component {
>
Add stop
</Button>
</InputBlock>
</div>
</div>
}
}

View file

@ -96,10 +96,6 @@
.maputnik-data-spec-property-input {
width: 75%;
display: inline-block;
.maputnik-string {
margin-bottom: 3%;
}
}
}
}