summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-25 15:58:52 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-25 15:58:52 +0100
commit97d95b4bcbcab86629e368ea41bb9f00450b21f6 (patch)
tree3663d29721ea91df9546bef35cd3896d0fecb1cb /client/components
parentd0a9d8c581f9356f5e72ccb698fc3963c59e96cd (diff)
downloadwekan-97d95b4bcbcab86629e368ea41bb9f00450b21f6.tar.gz
wekan-97d95b4bcbcab86629e368ea41bb9f00450b21f6.tar.bz2
wekan-97d95b4bcbcab86629e368ea41bb9f00450b21f6.zip
ui: lists: make sure all lists boxes are the same height
When `Show card count` is enabled, the lists with the card counts have two lines of text while the lists without have only one. This results in the box around the list headers are not of the same size and this is visible when setting a color to the list.
Diffstat (limited to 'client/components')
-rw-r--r--client/components/lists/list.styl5
-rw-r--r--client/components/lists/listHeader.jade1
2 files changed, 6 insertions, 0 deletions
diff --git a/client/components/lists/list.styl b/client/components/lists/list.styl
index 91823bdb..c12a2c73 100644
--- a/client/components/lists/list.styl
+++ b/client/components/lists/list.styl
@@ -43,12 +43,16 @@
background: white
margin: -3px 0 8px
+.list-header-card-count
+ height: 35px
+
.list-header
flex: 0 0 auto
padding: 20px 12px 4px
position: relative
min-height: 20px
+
&.ui-sortable-handle
cursor: grab
@@ -67,6 +71,7 @@
text-overflow: ellipsis
word-wrap: break-word
+
.list-header-watch-icon
padding-left: 10px
color: #a6a6a6
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index 48005eaf..eafcc510 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -1,5 +1,6 @@
template(name="listHeader")
.list-header.js-list-header(
+ class="{{#if limitToShowCardsCount}}list-header-card-count{{/if}}"
class="{{#if colorClass}}list-header-{{colorClass}}{{/if}}")
+inlinedForm
+editListTitleForm