From 89fd312220134ba5fc532e26c553bc49378e5182 Mon Sep 17 00:00:00 2001 From: elweyn Date: Thu, 9 Mar 2023 14:35:15 +0100 Subject: [PATCH 01/10] feat(webapp): filter button style change --- webapp/pages/index.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index d5f1ac3d0..673425d12 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -40,7 +40,7 @@ - + {{ $t('contribution.filterMasonryGrid.myTopics') }} - + {{ $t('contribution.filterMasonryGrid.myFriends') }} @@ -307,6 +309,17 @@ export default { float: right; } +.my-filter-button-selected { + padding-right: 30px; + margin-left: 8px; +} + +.base-button.filter-remove { + position: relative; + margin-left: -31px; + top: -5px; +} + .base-button.--circle.post-add-button-bottom { height: 54px; width: 54px; @@ -335,6 +348,7 @@ export default { align-items: center; } .filterButtonMenu { + width: 70%; position: fixed; z-index: 6; margin-top: -35px; From f34e41957150454a4e295d4a531cb757f0191672 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 07:02:55 +0100 Subject: [PATCH 02/10] Fix linting. --- webapp/pages/index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 673425d12..592c320f8 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -40,7 +40,12 @@ - + {{ $t('contribution.filterMasonryGrid.myTopics') }} - + {{ $t('contribution.filterMasonryGrid.myFriends') }} Date: Mon, 13 Mar 2023 07:36:26 +0100 Subject: [PATCH 03/10] Change style of postsInMyGroups filter button --- webapp/pages/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 9170174fc..501c6c4aa 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -83,7 +83,12 @@ - + {{ $t('contribution.filterMasonryGrid.myGroups') }} From ba6a05ff69120071af8ba265dc3c8122b70ec509 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 07:37:09 +0100 Subject: [PATCH 04/10] Upgrade filterButtonMenu size --- webapp/pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 501c6c4aa..6b0743590 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -383,7 +383,7 @@ export default { align-items: center; } .filterButtonMenu { - width: 70%; + width: 81%; position: fixed; z-index: 6; margin-top: -35px; From e7d43e5019b2d0fd0fe0f770b5485ab35ccaf681 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 07:38:48 +0100 Subject: [PATCH 05/10] Fix linting --- webapp/pages/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 6b0743590..85d480cb4 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -83,10 +83,10 @@ - {{ $t('contribution.filterMasonryGrid.myGroups') }} From 22f06de83da03f64c4862b1186ceef752190cfd8 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 10:13:30 +0100 Subject: [PATCH 06/10] Create component for the filter buttons --- webapp/components/FilterMenu/HeaderButton.vue | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 webapp/components/FilterMenu/HeaderButton.vue diff --git a/webapp/components/FilterMenu/HeaderButton.vue b/webapp/components/FilterMenu/HeaderButton.vue new file mode 100644 index 000000000..871b32bf1 --- /dev/null +++ b/webapp/components/FilterMenu/HeaderButton.vue @@ -0,0 +1,56 @@ + + + From baa49414aa7eb6837f72d5896318251e754200b3 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 10:13:51 +0100 Subject: [PATCH 07/10] Use header-button component --- webapp/pages/index.vue | 95 ++++++++++++------------------------------ 1 file changed, 27 insertions(+), 68 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 85d480cb4..0fced8ee1 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -43,65 +43,30 @@   - - - {{ $t('contribution.filterMasonryGrid.myTopics') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myFriends') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myGroups') }} - - - + + + +
@@ -160,6 +125,7 @@ import HcEmpty from '~/components/Empty/Empty' import PostTeaser from '~/components/PostTeaser/PostTeaser.vue' import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue' import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue' +import HeaderButton from '~/components/FilterMenu/HeaderButton' import { mapGetters, mapMutations } from 'vuex' import { DonationsQuery } from '~/graphql/Donations' import { filterPosts } from '~/graphql/PostQuery.js' @@ -177,6 +143,7 @@ export default { MasonryGrid, MasonryGridItem, FilterMenuComponent, + HeaderButton, }, mixins: [postListActions], data() { @@ -243,6 +210,9 @@ export default { resetCategories: 'posts/RESET_CATEGORIES', toggleCategory: 'posts/TOGGLE_CATEGORY', }), + openFilterMenu() { + this.showFilter = !this.showFilter + }, showFilterMenu(e) { if (!e || (!e.target.closest('#my-filter') && !e.target.closest('.my-filter-button'))) { if (!this.showFilter) return @@ -344,17 +314,6 @@ export default { float: right; } -.my-filter-button-selected { - padding-right: 30px; - margin-left: 8px; -} - -.base-button.filter-remove { - position: relative; - margin-left: -31px; - top: -5px; -} - .base-button.--circle.post-add-button-bottom { height: 54px; width: 54px; From 6858fa58ab2e9136173c08ea3d258d7154f8c4f8 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 10:31:07 +0100 Subject: [PATCH 08/10] Add small margin to the top --- webapp/components/FilterMenu/HeaderButton.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/components/FilterMenu/HeaderButton.vue b/webapp/components/FilterMenu/HeaderButton.vue index 871b32bf1..780e29ade 100644 --- a/webapp/components/FilterMenu/HeaderButton.vue +++ b/webapp/components/FilterMenu/HeaderButton.vue @@ -45,6 +45,7 @@ export default {