فهرست منبع

Fix header style when there are too much starred boards

Fixes #237
Maxime Quandalle 9 سال پیش
والد
کامیت
76004e407c
2فایلهای تغییر یافته به همراه14 افزوده شده و 4 حذف شده
  1. 3 3
      client/components/main/header.jade
  2. 11 1
      client/components/main/header.styl

+ 3 - 3
client/components/main/header.jade

@@ -21,9 +21,9 @@ template(name="header")
             else
             else
               li.current {{_ 'quick-access-description'}}
               li.current {{_ 'quick-access-description'}}
 
 
-            li
-              a.js-create-board
-                i.fa.fa-plus(title="Create a new board")
+
+          a#header-new-board-icon.js-create-board
+            i.fa.fa-plus(title="Create a new board")
 
 
           +headerUserBar
           +headerUserBar
 
 

+ 11 - 1
client/components/main/header.styl

@@ -13,6 +13,7 @@
     display: flex
     display: flex
 
 
     #header-user-bar,
     #header-user-bar,
+    #header-new-board-icon,
     ul li
     ul li
       color: darken(white, 17%)
       color: darken(white, 17%)
 
 
@@ -23,9 +24,9 @@
         color: white
         color: white
 
 
     ul
     ul
-      flex: 1
       transition: opacity 0.2s
       transition: opacity 0.2s
       margin: 4px 0 0 5px
       margin: 4px 0 0 5px
+      overflow: hidden
 
 
       li
       li
         display: block
         display: block
@@ -43,6 +44,10 @@
         a.js-create-board
         a.js-create-board
           margin-left: 5px
           margin-left: 5px
 
 
+    #header-user-bar,
+    #header-new-board-icon
+      flex-shrink: 0
+
     #header-user-bar
     #header-user-bar
       margin: 2px 0
       margin: 2px 0
 
 
@@ -62,6 +67,11 @@
         i.fa-chevron-down
         i.fa-chevron-down
           margin-right: 4px
           margin-right: 4px
 
 
+    #header-new-board-icon
+      flex-grow: 1
+      margin: 6px 5px 0
+      width: 12px
+
   #header-main-bar
   #header-main-bar
     height: 28px * 1.618034 - 6px
     height: 28px * 1.618034 - 6px
     padding: 7px 10px 0
     padding: 7px 10px 0