mirror of
https://github.com/wekan/wekan.git
synced 2026-02-05 08:01:49 +01:00
Import card-as-card, board-as-card. Add styling. Missing details and links
This commit is contained in:
parent
061a13e46e
commit
5644ef66af
5 changed files with 159 additions and 25 deletions
|
|
@ -1,5 +1,7 @@
|
|||
template(name="minicard")
|
||||
.minicard
|
||||
.minicard(
|
||||
class="{{#if importedCard}}imported-card{{/if}}"
|
||||
class="{{#if importedBoard}}imported-board{{/if}}")
|
||||
if cover
|
||||
.minicard-cover(style="background-image: url('{{cover.url}}');")
|
||||
if labels
|
||||
|
|
@ -13,6 +15,8 @@ template(name="minicard")
|
|||
if $eq 'prefix-with-parent' currentBoard.presentParentTask
|
||||
.parent-prefix
|
||||
| {{ parentCardName }}
|
||||
if imported
|
||||
span.imported-icon.fa.fa-share-alt
|
||||
+viewer
|
||||
| {{ title }}
|
||||
if $eq 'subtext-with-full-path' currentBoard.presentParentTask
|
||||
|
|
|
|||
|
|
@ -6,4 +6,13 @@ BlazeComponent.extendComponent({
|
|||
template() {
|
||||
return 'minicard';
|
||||
},
|
||||
importedCard() {
|
||||
return this.currentData().type === 'cardType-importedCard';
|
||||
},
|
||||
importedBoard() {
|
||||
return this.currentData().type === 'cardType-importedBoard';
|
||||
},
|
||||
imported() {
|
||||
return this.importedCard() || this.importedBoard();
|
||||
},
|
||||
}).register('minicard');
|
||||
|
|
|
|||
|
|
@ -44,6 +44,41 @@
|
|||
transition: transform 0.2s,
|
||||
border-radius 0.2s
|
||||
|
||||
&.imported-board
|
||||
background-color: #efd8e6
|
||||
&:hover:not(.minicard-composer),
|
||||
.is-selected &,
|
||||
.draggable-hover-card &
|
||||
background: darken(#efd8e6, 3%)
|
||||
|
||||
.is-selected &
|
||||
border-left: 3px solid darken(#efd8e6, 50%)
|
||||
|
||||
.minicard-title
|
||||
font-style: italic
|
||||
font-weight: bold
|
||||
|
||||
&.imported-card
|
||||
background-color: #d5e4bd
|
||||
&:hover:not(.minicard-composer),
|
||||
.is-selected &,
|
||||
.draggable-hover-card &
|
||||
background: darken(#d5e4bd, 3%)
|
||||
|
||||
.is-selected &
|
||||
border-left: 3px solid darken(#d5e4bd, 50%)
|
||||
|
||||
.minicard-title
|
||||
font-style: italic
|
||||
|
||||
&.imported-board
|
||||
&.imported-card
|
||||
.imported-icon
|
||||
display: inline-block
|
||||
margin-right: 11px
|
||||
vertical-align: baseline
|
||||
font-size: 0.9em
|
||||
|
||||
.is-selected &
|
||||
transform: translateX(11px)
|
||||
border-bottom-right-radius: 0
|
||||
|
|
@ -87,6 +122,8 @@
|
|||
.minicard-title
|
||||
p:last-child
|
||||
margin-bottom: 0
|
||||
.viewer
|
||||
display: inline-block
|
||||
.dates
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue