Skip to content

Commit

Permalink
Merge pull request jdorn#738 from germanbisurgi/master
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 authored Apr 30, 2020
2 parents 04aa4f0 + e160d84 commit a2d9597
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/editors/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ export class ObjectEditor extends AbstractEditor {
this.header.textContent = this.getTitle()
}
this.title = this.theme.getHeader(this.header)
this.title.style.display = 'inline-block'
this.controls = this.theme.getButtonHolder()
this.controls.style.margin = '0 0 0 10px'

Expand Down
2 changes: 2 additions & 0 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export class AbstractTheme {
el.appendChild(text)
}

el.style.display = 'inline-block'

return el
}

Expand Down
6 changes: 6 additions & 0 deletions src/themes/bootstrap4.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export class bootstrap4Theme extends AbstractTheme {
}
}

const unique = label.innerText
label.setAttribute('for', unique)
input.setAttribute('id', unique)

check.appendChild(input)
check.appendChild(label)
if (infoText) check.appendChild(infoText)
Expand Down Expand Up @@ -328,6 +332,8 @@ export class bootstrap4Theme extends AbstractTheme {
el.appendChild(text)
}

el.style.display = 'inline-block'

/* cardHeader.appendChild(el) */

return el
Expand Down
2 changes: 2 additions & 0 deletions src/themes/spectre.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export class spectreTheme extends AbstractTheme {
el.appendChild(text)
}

el.style.display = 'inline-block'

return el
}

Expand Down

0 comments on commit a2d9597

Please sign in to comment.