Browse Source

listHeader, simpler code logic at collapsed if conditions

Martin Filser 1 year ago
parent
commit
53aa5ebc17
1 changed files with 5 additions and 7 deletions
  1. 5 7
      client/components/lists/listHeader.jade

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

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