浏览代码

Merge pull request #5497 from mfilser/master

listHeader, simpler code logic at collapsed if conditions
Lauri Ojansivu 10 月之前
父节点
当前提交
1541c6ca23
共有 1 个文件被更改,包括 5 次插入7 次删除
  1. 5 7
      client/components/lists/listHeader.jade

+ 5 - 7
client/components/lists/listHeader.jade

@@ -5,16 +5,14 @@ template(name="listHeader")
     +inlinedForm
       +editListTitleForm
     else
-      unless isMiniScreen
-        if collapsed
-          a.js-collapse(title="{{_ 'uncollapse'}}")
-            i.fa.fa-arrow-left.list-header-uncollapse-left
-            i.fa.fa-arrow-right.list-header-uncollapse-right
       if isMiniScreen
         if currentList
           a.list-header-left-icon.fa.fa-angle-left.js-unselect-list
-      unless isMiniScreen
+      else
         if collapsed
+          a.js-collapse(title="{{_ 'uncollapse'}}")
+            i.fa.fa-arrow-left.list-header-uncollapse-left
+            i.fa.fa-arrow-right.list-header-uncollapse-right
           if showCardsCountForList cards.length
             br
             span.cardCount {{cardsCount}}
@@ -30,7 +28,7 @@ template(name="listHeader")
            |/#{wipLimit.value})
         if showCardsCountForList cards.length
           span.cardCount {{cardsCount}} {{cardsCountForListIsOne cards.length}}
-      unless isMiniScreen
+      else
         div(class="{{#if collapsed}}list-rotated{{/if}}")
           h2.list-header-name(
             title="{{ moment modifiedAt 'LLL' }}"