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> </div>
</label> </label>
} }
else if (label) {
return <label className="maputnik-doc-wrapper">
<div className="maputnik-doc-target">
{label}
</div>
</label>
}
else { else {
return <div /> <div />
} }
} }
} }

View file

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

View file

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