diff options
author | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-26 13:22:51 +0300 |
---|---|---|
committer | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-26 14:33:05 +0300 |
commit | 3a4a075dbadba8c1ce12fa86730a4507985729f7 (patch) | |
tree | ee39a71bfb642eef58fe2ba2224277ab4ec8c391 /client | |
parent | c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145 (diff) | |
download | wekan-3a4a075dbadba8c1ce12fa86730a4507985729f7.tar.gz wekan-3a4a075dbadba8c1ce12fa86730a4507985729f7.tar.bz2 wekan-3a4a075dbadba8c1ce12fa86730a4507985729f7.zip |
Fix minicard parents display
Diffstat (limited to 'client')
-rw-r--r-- | client/components/cards/minicard.jade | 27 | ||||
-rw-r--r-- | client/components/cards/minicard.styl | 7 |
2 files changed, 20 insertions, 14 deletions
diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade index 9a9b897f..57913669 100644 --- a/client/components/cards/minicard.jade +++ b/client/components/cards/minicard.jade @@ -7,21 +7,20 @@ template(name="minicard") each labels .minicard-label(class="card-label-{{color}}" title="{{name}}") .minicard-title + if $eq 'prefix-with-full-path' currentBoard.presentParentTask + .parent-prefix + | {{ parentString ' > ' }} + if $eq 'prefix-with-parent' currentBoard.presentParentTask + .parent-prefix + | {{ parentCardName }} +viewer - if isTopLevel - = title - else - if $eq 'prefix-with-full-path' currentBoard.presentParentTask - [{{ parentString ' > ' }}] {{ title }} - else - if $eq 'prefix-with-parent' currentBoard.presentParentTask - [{{ parentCardName }}] {{ title }} - else - = title - if $eq 'subtext-with-full-path' currentBoard.presentParentTask - .small {{ parentString ' > ' }} - if $eq 'subtext-with-parent' currentBoard.presentParentTask - .small {{ parentCardName }} + {{ title }} + if $eq 'subtext-with-full-path' currentBoard.presentParentTask + .parent-subtext + | {{ parentString ' > ' }} + if $eq 'subtext-with-parent' currentBoard.presentParentTask + .parent-subtext + | {{ parentCardName }} .dates if receivedAt diff --git a/client/components/cards/minicard.styl b/client/components/cards/minicard.styl index 38f829d0..6c9414a7 100644 --- a/client/components/cards/minicard.styl +++ b/client/components/cards/minicard.styl @@ -162,6 +162,13 @@ margin-bottom: 20px overflow-y: auto +.parent-prefix + color: darken(white, 30%) + font-size: 0.9em +.parent-subtext + color: darken(white, 30%) + font-size: 0.9em + @media screen and (max-width: 800px) .minicard .is-selected & |