From 5deb5976509514aece02c8cc6c6765e326c96dc8 Mon Sep 17 00:00:00 2001
From: Hermann <blumh@student.ethz.ch>
Date: Sun, 27 May 2018 19:05:49 +0200
Subject: [PATCH] move restyling of h1 to general style settings

---
 src/groups/viewGroup.js | 2 +-
 src/style.js            | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/groups/viewGroup.js b/src/groups/viewGroup.js
index 4d3765c..37d4de0 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 668ff43..52a3fe5 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
-- 
GitLab