summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-12-17 20:38:33 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-12-17 20:38:33 +0800
commitd2ac3dc63df8b5a61c0c639483c5626ea7d91a32 (patch)
treed31ded34a5b16b74e94fe20efab78b3d4e71aed2 /client/components/main
parentce88495d4783d2352bdc277a69496d90c38495ce (diff)
downloadwekan-d2ac3dc63df8b5a61c0c639483c5626ea7d91a32.tar.gz
wekan-d2ac3dc63df8b5a61c0c639483c5626ea7d91a32.tar.bz2
wekan-d2ac3dc63df8b5a61c0c639483c5626ea7d91a32.zip
fix board headeer issue
Diffstat (limited to 'client/components/main')
-rw-r--r--client/components/main/header.jade2
-rw-r--r--client/components/main/header.js4
-rw-r--r--client/components/main/header.styl3
3 files changed, 5 insertions, 4 deletions
diff --git a/client/components/main/header.jade b/client/components/main/header.jade
index ff79617e..711e272c 100644
--- a/client/components/main/header.jade
+++ b/client/components/main/header.jade
@@ -34,7 +34,7 @@ template(name="header")
#header-main-bar(class="{{#if wrappedHeader}}wrapper{{/if}}")
+Template.dynamic(template=headerBar)
- if wrappedHeader
+ unless hideLogo
//-
On sandstorm, the logo shouldn't be clickable, because we only have one
page/document on it, and we don't want to see the home page containing
diff --git a/client/components/main/header.js b/client/components/main/header.js
index d44fe76d..73024aa9 100644
--- a/client/components/main/header.js
+++ b/client/components/main/header.js
@@ -2,6 +2,10 @@ Template.header.helpers({
wrappedHeader() {
return !Session.get('currentBoard');
},
+
+ hideLogo() {
+ return Utils.isMiniScreen() && Session.get('currentBoard');
+ },
});
Template.header.events({
diff --git a/client/components/main/header.styl b/client/components/main/header.styl
index d9abe07f..fbf2992d 100644
--- a/client/components/main/header.styl
+++ b/client/components/main/header.styl
@@ -165,9 +165,6 @@
#header-main-bar
height: 40px
- h1
- display: none
-
.board-header-btns
margin-top: 0px