diff --git a/src/groups/viewGroup.js b/src/groups/viewGroup.js index 4d3765cf8173e07fd8ab0dba3dfcda8abc26dba6..37d4de03da49b584358eaa6428d1cdc658f7bcdd 100644 --- a/src/groups/viewGroup.js +++ b/src/groups/viewGroup.js @@ -185,7 +185,7 @@ export default class viewGroup extends ItemView { return this.layout([ // this div is the title line m('div.maincontainer', [ - m('h1', { style: { 'margin-top': '0px', 'margin-bottom': '0px' } }, this.data.name), + m('h1', this.data.name), this.data.moderator ? m(Property, { title: 'Moderator', onclick: () => { m.route.set(`/users/${this.data.moderator._id}`); }, diff --git a/src/style.js b/src/style.js index 668ff4359cf375efce5307cafddae9c79fc22007..52a3fe5102a6b91bc047c40dac329cd974f65474 100644 --- a/src/style.js +++ b/src/style.js @@ -43,6 +43,10 @@ const style = [ 'flex-grow': 1, padding: '10px', }, + h1: { + 'margin-top': '0px', + 'margin-bottom': '0px', + }, }, ]; styler.add('containers', style); \ No newline at end of file