Skip to content

Commit 4909698

Browse files
authored
Merge pull request jdorn#719 from germanbisurgi/master
fix for jdorn#662 and jdorn#718
2 parents 3b001ad + 4bd87a4 commit 4909698

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/editors/colorpicker.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import { extend } from '../utilities.js'
1010

1111
export class ColorEditor extends StringEditor {
1212
postBuild () {
13-
if (window.Picker) this.input.type = 'text'
13+
if (window.Picker) {
14+
this.input.type = 'text'
15+
}
16+
this.input.style.padding = '3px'
1417
}
1518

1619
setValue (value, initial, fromTemplate) {

src/editors/object.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,12 @@ export class ObjectEditor extends AbstractEditor {
547547
this.header.textContent = this.getTitle()
548548
}
549549
this.title = this.theme.getHeader(this.header)
550+
this.title.style.display = 'inline-block'
550551
this.controls = this.theme.getButtonHolder()
551552
this.controls.style.margin = '0 0 0 10px'
552553

553554
this.container.appendChild(this.title)
554-
this.title.appendChild(this.controls)
555+
this.container.appendChild(this.controls)
555556
this.container.style.position = 'relative'
556557

557558
/* Edit JSON modal */

0 commit comments

Comments
 (0)