From d9e69d524696d8708da61195eed4b5dd67f61dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 24 Aug 2020 14:01:42 +0200 Subject: [PATCH] Use @nextcloud/vue-dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- package-lock.json | 6 +-- package.json | 2 +- src/views/Dashboard.vue | 94 ++++++++++++++++++++++++++++------------- 3 files changed, 68 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6fdfd8c72..64132d461 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3852,9 +3852,9 @@ } }, "@nextcloud/vue-dashboard": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@nextcloud/vue-dashboard/-/vue-dashboard-0.1.6.tgz", - "integrity": "sha512-AgJMFYLuWWKi7U5TE+Zjta02OzS83nMgmgQZOjvP92VV/TwcxMnUo/3eJRaNrAnoRej4x1hjdroQC8PgDbZqzQ==", + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/@nextcloud/vue-dashboard/-/vue-dashboard-0.1.8.tgz", + "integrity": "sha512-OGr1oK/WF9+bYHK8dE8Vjwh3IDNamN+9MSti1VO7zuUSm5A9EGCzAghR7zzCG4O43rAJEDcvnQwsYIiA6g4Yrw==", "requires": { "@nextcloud/vue": "^2.3.0", "core-js": "^3.6.4", diff --git a/package.json b/package.json index 47023536e..d1a62cc47 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@nextcloud/moment": "^1.1.1", "@nextcloud/router": "^1.1.0", "@nextcloud/vue": "^2.6.0", - "@nextcloud/vue-dashboard": "^0.1.6", + "@nextcloud/vue-dashboard": "^0.1.8", "blueimp-md5": "^2.17.0", "dompurify": "^2.0.12", "lodash": "^4.17.20", diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 301ce52e5..25a10e3d7 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -21,27 +21,41 @@ --> @@ -82,8 +113,8 @@ export default { .card { display: block; border-radius: var(--border-radius-large); - margin-bottom: 8px; - padding: 5px; + padding: 8px; + height: 60px; &:hover { background-color: var(--color-background-hover); @@ -92,10 +123,11 @@ export default { .card--header { overflow: hidden; - margin-bottom: 5px; - span { - display: inline-block; - padding: 5px; + .title { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: block; } } @@ -105,7 +137,9 @@ export default { .duedate::v-deep { .due { - margin: 0; + margin: 0 0 0 10px; + padding: 2px 4px; + font-size: 90%; } }