mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
Make Due Date layout nicer on minicard. Thanks to whittssg2!
This commit is contained in:
parent
c7f30c96fc
commit
d6028b90cd
2 changed files with 20 additions and 21 deletions
|
|
@ -7,6 +7,13 @@ template(name="minicard")
|
||||||
each labels
|
each labels
|
||||||
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
||||||
.minicard-title= title
|
.minicard-title= title
|
||||||
|
.dates
|
||||||
|
if startAt
|
||||||
|
.date
|
||||||
|
+minicardStartDate
|
||||||
|
if dueAt
|
||||||
|
.date
|
||||||
|
+minicardDueDate
|
||||||
if members
|
if members
|
||||||
.minicard-members.js-minicard-members
|
.minicard-members.js-minicard-members
|
||||||
each members
|
each members
|
||||||
|
|
@ -23,14 +30,7 @@ template(name="minicard")
|
||||||
.badge
|
.badge
|
||||||
span.badge-icon.fa.fa-paperclip
|
span.badge-icon.fa.fa-paperclip
|
||||||
span.badge-text= attachments.count
|
span.badge-text= attachments.count
|
||||||
if startAt
|
|
||||||
.badge
|
|
||||||
+minicardStartDate
|
|
||||||
if dueAt
|
|
||||||
.badge
|
|
||||||
+minicardDueDate
|
|
||||||
if checklists.count
|
if checklists.count
|
||||||
.badge(class="{{#if checklistFinished}}is-finished{{/if}}")
|
.badge(class="{{#if checklistFinished}}is-finished{{/if}}")
|
||||||
span.badge-icon.fa.fa-check-square-o
|
span.badge-icon.fa.fa-check-square-o
|
||||||
span.badge-text.check-list-text {{checklistFinishedCount}}/{{checklistItemCount}}
|
span.badge-text.check-list-text {{checklistFinishedCount}}/{{checklistItemCount}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,12 @@
|
||||||
height: @width
|
height: @width
|
||||||
border-radius: 2px
|
border-radius: 2px
|
||||||
margin-left: 3px
|
margin-left: 3px
|
||||||
|
.dates
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.date
|
||||||
|
margin-right: 3px
|
||||||
.badges
|
.badges
|
||||||
float: left
|
float: left
|
||||||
margin-top: 7px
|
margin-top: 7px
|
||||||
|
|
@ -91,6 +96,11 @@
|
||||||
margin-right: 11px
|
margin-right: 11px
|
||||||
margin-bottom: 3px
|
margin-bottom: 3px
|
||||||
font-size: 0.9em
|
font-size: 0.9em
|
||||||
|
&.is-finished
|
||||||
|
background: #3cb500
|
||||||
|
padding: 0px 3px
|
||||||
|
border-radius: 3px
|
||||||
|
color: white
|
||||||
|
|
||||||
&:last-of-type
|
&:last-of-type
|
||||||
margin-right: 0
|
margin-right: 0
|
||||||
|
|
@ -98,16 +108,6 @@
|
||||||
.badge-icon,
|
.badge-icon,
|
||||||
.badge-text
|
.badge-text
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
|
|
||||||
&.is-finished
|
|
||||||
background: #3cb500
|
|
||||||
padding: 0px 3px
|
|
||||||
border-radius: 3px
|
|
||||||
color: white
|
|
||||||
|
|
||||||
.badge-icon,
|
|
||||||
.badge-text
|
|
||||||
vertical-align: middle//didn't figure why use top, it'd be easier to fill bg if it's middle. This was introduced in commit "91cfcf7b12b5e7c137c2e765b2c378dde6b82966" & "* Improve the design of the minicards badges" was mentioned.
|
|
||||||
&.badge-comment
|
&.badge-comment
|
||||||
margin-bottom: 0.1rem
|
margin-bottom: 0.1rem
|
||||||
|
|
||||||
|
|
@ -119,7 +119,6 @@
|
||||||
padding-left: 0px
|
padding-left: 0px
|
||||||
line-height: 12px
|
line-height: 12px
|
||||||
|
|
||||||
|
|
||||||
.minicard-members
|
.minicard-members
|
||||||
float: right
|
float: right
|
||||||
margin: 2px -8px -2px 0
|
margin: 2px -8px -2px 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue