summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-09-26 10:53:58 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-09-26 10:53:58 -0400
commit4f34adbd44c559b3807d5205fe56be34cf4813d1 (patch)
treee582d7dac1652dae4937b1c34502bacfff3203ca /client/components/cards
parent62b72a03c4889377169411c8cdbf372c71cac1af (diff)
parent5696e4a4c67510d8e430eaf4ecb99896f857962e (diff)
downloadwekan-4f34adbd44c559b3807d5205fe56be34cf4813d1.tar.gz
wekan-4f34adbd44c559b3807d5205fe56be34cf4813d1.tar.bz2
wekan-4f34adbd44c559b3807d5205fe56be34cf4813d1.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/minicard.jade9
-rw-r--r--client/components/cards/minicard.js3
-rw-r--r--client/components/cards/minicard.styl2
3 files changed, 11 insertions, 3 deletions
diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade
index 3806ce41..a3f32304 100644
--- a/client/components/cards/minicard.jade
+++ b/client/components/cards/minicard.jade
@@ -3,6 +3,13 @@ template(name="minicard")
class="{{#if isLinkedCard}}linked-card{{/if}}"
class="{{#if isLinkedBoard}}linked-board{{/if}}"
class="minicard-{{colorClass}}")
+ if isMiniScreen
+ .handle
+ .fa.fa-arrows
+ unless isMiniScreen
+ if showDesktopDragHandles
+ .handle
+ .fa.fa-arrows
if cover
.minicard-cover(style="background-image: url('{{cover.url}}');")
if labels
@@ -15,8 +22,6 @@ template(name="minicard")
if hiddenMinicardLabelText
.minicard-label(class="card-label-{{color}}" title="{{name}}")
.minicard-title
- .handle
- .fa.fa-arrows
if $eq 'prefix-with-full-path' currentBoard.presentParentTask
.parent-prefix
| {{ parentString ' > ' }}
diff --git a/client/components/cards/minicard.js b/client/components/cards/minicard.js
index 4c25c11d..4c76db46 100644
--- a/client/components/cards/minicard.js
+++ b/client/components/cards/minicard.js
@@ -26,6 +26,9 @@ BlazeComponent.extendComponent({
}).register('minicard');
Template.minicard.helpers({
+ showDesktopDragHandles() {
+ return Meteor.user().hasShowDesktopDragHandles();
+ },
hiddenMinicardLabelText() {
return Meteor.user().hasHiddenMinicardLabelText();
},
diff --git a/client/components/cards/minicard.styl b/client/components/cards/minicard.styl
index c4172572..9997fd5f 100644
--- a/client/components/cards/minicard.styl
+++ b/client/components/cards/minicard.styl
@@ -105,7 +105,7 @@
right: 5px;
top: 5px;
display:none;
- @media only screen and (max-width: 1199px) {
+ @media only screen {
display:block;
}
.fa-arrows