Merge pull request #4076 from Jerome-Herbinet/patch-2

Fix : Dashboard Deck widget overlap + align issue
This commit is contained in:
Julius Härtl
2022-10-27 19:50:32 +02:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ export default {
list.sort((a, b) => { list.sort((a, b) => {
return (new Date(a.duedate)).getTime() - (new Date(b.duedate)).getTime() return (new Date(a.duedate)).getTime() - (new Date(b.duedate)).getTime()
}) })
return list.slice(0, 6) return list.slice(0, 5)
}, },
cardLink() { cardLink() {
return (card) => { return (card) => {
@@ -129,7 +129,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 8px; margin-top: 10px;
} }
#deck-widget-empty-content { #deck-widget-empty-content {
@@ -140,9 +140,8 @@ export default {
.card { .card {
display: block; display: block;
border-radius: var(--border-radius-large); border-radius: var(--border-radius-large);
padding: 8px; padding: 5px 8px;
height: 60px; height: 70px;
&:hover { &:hover {
background-color: var(--color-background-hover); background-color: var(--color-background-hover);
} }
@@ -155,11 +154,14 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
display: block; display: block;
position: relative;
top: 3px;
} }
} }
.labels { .labels {
margin-left: 0; margin-left: 0;
margin-top: 3px;
} }
.duedate::v-deep { .duedate::v-deep {