diff --git a/webapp/components/FilterMenu/HeaderButton.vue b/webapp/components/FilterMenu/HeaderButton.vue new file mode 100644 index 000000000..780e29ade --- /dev/null +++ b/webapp/components/FilterMenu/HeaderButton.vue @@ -0,0 +1,57 @@ + + + diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 885d3381d..6f5268a0d 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -43,47 +43,30 @@   - - - {{ $t('contribution.filterMasonryGrid.myTopics') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myFriends') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myGroups') }} - - - + + + +
@@ -142,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' @@ -159,6 +143,7 @@ export default { MasonryGrid, MasonryGridItem, FilterMenuComponent, + HeaderButton, }, mixins: [postListActions], data() { @@ -225,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 @@ -354,13 +342,18 @@ export default { align-items: center; } .filterButtonMenu { + width: 95%; position: fixed; z-index: 6; margin-top: -35px; padding: 20px 10px 5px 10px; - border-radius: 7px; background-color: #f5f4f6; } +@media screen and (max-width: 656px) { + .filterButtonMenu { + margin-top: -50px; + } +} #my-filter { background-color: white; box-shadow: rgb(189 189 189) 1px 9px 15px 1px;