Merge pull request #3375 from nextcloud/enh/print-dates
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="card" class="duedate">
|
<div v-if="card" class="duedate">
|
||||||
<transition name="zoom">
|
<transition name="zoom">
|
||||||
<div v-if="card.duedate" :class="dueIcon">
|
<div v-if="card.duedate" :class="dueIcon" :title="absoluteDate">
|
||||||
<span>{{ relativeDate }}</span>
|
<span>{{ relativeDate }}</span>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
@@ -62,14 +62,14 @@ export default {
|
|||||||
}
|
}
|
||||||
return moment(this.card.duedate).fromNow()
|
return moment(this.card.duedate).fromNow()
|
||||||
},
|
},
|
||||||
dueDateTooltip() {
|
absoluteDate() {
|
||||||
return moment(this.card.duedate).format('LLLL')
|
return moment(this.card.duedate).format('L')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" coped>
|
<style lang="scss" scoped>
|
||||||
.icon.due {
|
.icon.due {
|
||||||
background-position: 4px center;
|
background-position: 4px center;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@@ -105,6 +105,7 @@ export default {
|
|||||||
padding: 3px 4px;
|
padding: 3px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::before,
|
||||||
span {
|
span {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -112,4 +113,18 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.icon.due {
|
||||||
|
background-color: transparent !important;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: attr(title);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user