From ff655808b3cb562bd1c843ff70bf3641718ae61d Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 1 Sep 2022 16:09:50 +0000 Subject: [PATCH] feat: settings background script setup (#2104) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2104 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- cypress/e2e/list/list.spec.ts | 2 +- cypress/e2e/list/namespaces.spec.ts | 2 +- src/components/input/button.vue | 2 + src/components/misc/card.vue | 20 +- src/components/misc/create-edit.vue | 55 ++-- src/views/About.vue | 5 +- src/views/filters/FilterNew.vue | 19 +- src/views/list/settings/background.vue | 414 +++++++++++++------------ 8 files changed, 275 insertions(+), 244 deletions(-) diff --git a/cypress/e2e/list/list.spec.ts b/cypress/e2e/list/list.spec.ts index 8c151328..f49c2039 100644 --- a/cypress/e2e/list/list.spec.ts +++ b/cypress/e2e/list/list.spec.ts @@ -59,7 +59,7 @@ describe('Lists', () => { .click() cy.get('#title') .type(`{selectall}${newListName}`) - cy.get('footer.modal-card-foot .button') + cy.get('footer.card-footer .button') .contains('Save') .click() diff --git a/cypress/e2e/list/namespaces.spec.ts b/cypress/e2e/list/namespaces.spec.ts index 2ede493f..6bcf8b23 100644 --- a/cypress/e2e/list/namespaces.spec.ts +++ b/cypress/e2e/list/namespaces.spec.ts @@ -63,7 +63,7 @@ describe('Namepaces', () => { .should('equal', newNamespaces[0].title) // wait until the namespace data is loaded cy.get('#namespacetext') .type(`{selectall}${newNamespaceName}`) - cy.get('footer.modal-card-foot .button') + cy.get('footer.card-footer .button') .contains('Save') .click() diff --git a/src/components/input/button.vue b/src/components/input/button.vue index cae9bc15..738cfa1a 100644 --- a/src/components/input/button.vue +++ b/src/components/input/button.vue @@ -69,9 +69,11 @@ const showIconOnly = computed(() => props.icon !== '' && typeof slots.default == text-transform: uppercase; font-size: 0.85rem; font-weight: bold; + height: auto; min-height: $button-height; box-shadow: var(--shadow-sm); display: inline-flex; + white-space: break-spaces; &:hover { box-shadow: var(--shadow-md); diff --git a/src/components/misc/card.vue b/src/components/misc/card.vue index 47ec9cde..7ca3a3df 100644 --- a/src/components/misc/card.vue +++ b/src/components/misc/card.vue @@ -16,11 +16,21 @@ -
+
- +
+ +
+ +
@@ -76,9 +86,11 @@ defineEmits(['close']) border-radius: $radius $radius 0 0; } -// FIXME: should maybe be merged somehow with modal -:deep(.modal-card-foot) { +.card-footer { background-color: var(--grey-50); border-top: 0; + padding: var(--modal-card-head-padding); + display: flex; + justify-content: flex-end; } \ No newline at end of file diff --git a/src/components/misc/create-edit.vue b/src/components/misc/create-edit.vue index e510fd5f..35441c32 100644 --- a/src/components/misc/create-edit.vue +++ b/src/components/misc/create-edit.vue @@ -4,38 +4,41 @@ :title="title" :shadow="false" :padding="false" - class="has-text-left has-overflow" + class="has-text-left" :has-close="true" @close="$router.back()" :loading="loading" >
- +
-
- - {{ tertiary }} - - - {{ $t('misc.cancel') }} - - - {{ primaryLabel || $t('misc.create') }} - -
+ + diff --git a/src/views/About.vue b/src/views/About.vue index 52f11a93..34fb0c73 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -19,17 +19,16 @@ {{ $t('about.apiVersion', {version: apiVersion}) }}

-