mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Style up filter bubble menu
This commit is contained in:
parent
f300f4bf41
commit
b7eb299acb
@ -1,11 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<ds-card>
|
<ds-card>
|
||||||
<ds-button
|
<ds-flex>
|
||||||
name="filter-by-followed-authors-only"
|
<ds-flex-item class="filter-menu-title">
|
||||||
icon="plus"
|
<ds-heading size="h3">
|
||||||
:primary="onlyFollowed"
|
{{ $t('filter-menu.title') }}
|
||||||
@click="toggleOnlyFollowed"
|
</ds-heading>
|
||||||
/>
|
</ds-flex-item>
|
||||||
|
<ds-flex-item>
|
||||||
|
<div class="filter-menu-buttons">
|
||||||
|
<ds-button
|
||||||
|
name="filter-by-followed-authors-only"
|
||||||
|
icon="user-plus"
|
||||||
|
:primary="onlyFollowed"
|
||||||
|
@click="toggleOnlyFollowed"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</ds-flex-item>
|
||||||
|
</ds-flex>
|
||||||
</ds-card>
|
</ds-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -33,3 +44,14 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.filter-menu-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-menu-buttons {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
{
|
{
|
||||||
"filter-menu": {
|
"filter-menu": {
|
||||||
"options": {
|
"title": "Deine Filterblase"
|
||||||
"friends": "Nur Freunde",
|
|
||||||
"friends-of-a-friend": "Freunde von Freunden",
|
|
||||||
"all": "Alle"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"copy": "Wenn Du bereits ein Konto bei Human Connection hast, melde Dich bitte hier an.",
|
"copy": "Wenn Du bereits ein Konto bei Human Connection hast, melde Dich bitte hier an.",
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
{
|
{
|
||||||
"filter-menu": {
|
"filter-menu": {
|
||||||
"options": {
|
"title": "Your filter bubble"
|
||||||
"friends": "Only friends",
|
|
||||||
"friends-of-a-friend": "Friends of a friend",
|
|
||||||
"all": "All"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"copy": "If you already have a human-connection account, login here.",
|
"copy": "If you already have a human-connection account, login here.",
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<ds-flex :width="{ base: '100%' }" gutter="base">
|
||||||
<ds-flex-item>
|
<ds-flex-item>
|
||||||
<filter-menu />
|
<filter-menu />
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<ds-flex v-if="Post && Post.length" :width="{ base: '100%' }" gutter="base">
|
<hc-post-card
|
||||||
<hc-post-card
|
v-for="(post, index) in uniq(Post)"
|
||||||
v-for="(post, index) in uniq(Post)"
|
:key="post.id"
|
||||||
:key="post.id"
|
:post="post"
|
||||||
:post="post"
|
:width="{ base: '100%', xs: '100%', md: '50%', xl: '33%' }"
|
||||||
:width="{ base: '100%', xs: '100%', md: '50%', xl: '33%' }"
|
@deletePost="deletePost(index, post.id)"
|
||||||
@deletePost="deletePost(index, post.id)"
|
/>
|
||||||
/>
|
|
||||||
</ds-flex>
|
</ds-flex>
|
||||||
<no-ssr>
|
<no-ssr>
|
||||||
<ds-button
|
<ds-button
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user