Skip to content

Commit

Permalink
Moved headline styling into themes
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed Apr 30, 2020
1 parent 04aa4f0 commit 376ded0
Show file tree
Hide file tree
Showing 4 changed files with 6 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
2 changes: 2 additions & 0 deletions src/themes/bootstrap4.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,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 376ded0

Please sign in to comment.