From a9c6c6b7b39349fe09182e6ddeeb60f32d298b57 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sat, 20 Apr 2024 09:34:41 +0200 Subject: [PATCH 1/8] fix #3270 Signed-off-by: dartcafe --- src/js/views/Navigation.vue | 47 +++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/src/js/views/Navigation.vue b/src/js/views/Navigation.vue index 504ff9127..83cf44524 100644 --- a/src/js/views/Navigation.vue +++ b/src/js/views/Navigation.vue @@ -51,26 +51,27 @@ @@ -222,4 +223,10 @@ export default { } } + .app-navigation-footer { + // height: auto !important; + // overflow: hidden !important; + // padding-top: 0 !important; + flex: 0 0 auto; + } From c4d7074c020f47ffff418d7ba0118dcfef5c9adb Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 24 Apr 2024 08:04:07 +0200 Subject: [PATCH 2/8] tidy flexbox in pollItem Signed-off-by: dartcafe --- src/js/components/Base/modules/BadgeDiv.vue | 15 +- src/js/components/Poll/PollInformation.vue | 9 +- src/js/components/PollList/PollItem.vue | 262 ++++++++++---------- 3 files changed, 145 insertions(+), 141 deletions(-) diff --git a/src/js/components/Base/modules/BadgeDiv.vue b/src/js/components/Base/modules/BadgeDiv.vue index a529a1afc..27a0cf0d4 100644 --- a/src/js/components/Base/modules/BadgeDiv.vue +++ b/src/js/components/Base/modules/BadgeDiv.vue @@ -22,9 +22,7 @@ @@ -222,4 +223,10 @@ export default { } } + .app-navigation-footer { + // height: auto !important; + // overflow: hidden !important; + // padding-top: 0 !important; + flex: 0 0 auto; + } From a47652c1c3524e649583674817188d03a4e8fdc5 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 24 Apr 2024 08:04:07 +0200 Subject: [PATCH 4/8] tidy flexbox in pollItem Signed-off-by: dartcafe --- src/js/components/Base/modules/BadgeDiv.vue | 15 +- src/js/components/Poll/PollInformation.vue | 9 +- src/js/components/PollList/PollItem.vue | 262 ++++++++++---------- 3 files changed, 145 insertions(+), 141 deletions(-) diff --git a/src/js/components/Base/modules/BadgeDiv.vue b/src/js/components/Base/modules/BadgeDiv.vue index a529a1afc..27a0cf0d4 100644 --- a/src/js/components/Base/modules/BadgeDiv.vue +++ b/src/js/components/Base/modules/BadgeDiv.vue @@ -22,9 +22,7 @@ @@ -116,15 +108,15 @@ export default { name: 'PollList', components: { + ArchivePollIcon, + ClonePollIcon, + DeletePollIcon, + HeaderBar, NcAppContent, NcActions, NcActionButton, NcEmptyContent, NcLoadingIcon, - HeaderBar, - DeletePollIcon, - ClonePollIcon, - ArchivePollIcon, RestorePollIcon, PollsAppIcon, PollItem: () => import('../components/PollList/PollItem.vue'), @@ -141,6 +133,20 @@ export default { filteredPolls: 'polls/filtered', }), + emptyContent() { + if (this.isLoading) { + return { + name: t('polls', 'Loading polls…'), + description: '', + } + } + + return { + name: t('polls', 'No polls found for this category'), + description: t('polls', 'Add one or change category!'), + } + }, + title() { return this.pollCategories.find((category) => (category.id === this.$route.params.type))?.titleExt }, @@ -158,7 +164,7 @@ export default { return this.filteredPolls(this.$route.params.type) }, - noPolls() { + emptyPollListnoPolls() { return this.pollList.length < 1 }, From 5d46d46d881b18ec0b10bebd37d57ef214644f59 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sat, 27 Apr 2024 20:14:43 +0200 Subject: [PATCH 7/8] Adopt change to administration view Signed-off-by: dartcafe --- src/js/views/Administration.vue | 129 ++++++++++++++++++-------------- 1 file changed, 71 insertions(+), 58 deletions(-) diff --git a/src/js/views/Administration.vue b/src/js/views/Administration.vue index ce6db9bb1..a2a3e9f86 100644 --- a/src/js/views/Administration.vue +++ b/src/js/views/Administration.vue @@ -30,62 +30,58 @@
- - - - - + - - - + -
- + + + +