mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add styling
- to link in NotificationMenu - make table more mobile responsive - remove unneccessary props Co-authored-by: Alina Beck <alina.beck@mail.com>
This commit is contained in:
parent
994a0b049d
commit
d83a424513
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<dropdown class="avatar-menu" offset="8">
|
<dropdown class="avatar-menu" offset="8" :placement="placement">
|
||||||
<template slot="default" slot-scope="{ toggleMenu }">
|
<template slot="default" slot-scope="{ toggleMenu }">
|
||||||
<a
|
<a
|
||||||
class="avatar-menu-trigger"
|
class="avatar-menu-trigger"
|
||||||
@ -58,7 +58,6 @@ export default {
|
|||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
placement: { type: String, default: 'top-end' },
|
placement: { type: String, default: 'top-end' },
|
||||||
user: { type: Object, default: null },
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
@ -73,7 +72,7 @@ export default {
|
|||||||
let routes = [
|
let routes = [
|
||||||
{
|
{
|
||||||
name: this.$t('profile.name'),
|
name: this.$t('profile.name'),
|
||||||
path: `/profile/${this.user.slug}`,
|
path: `/profile/${this.user.id}/${this.user.slug}`,
|
||||||
icon: 'user',
|
icon: 'user',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,21 +2,21 @@
|
|||||||
<ds-button v-if="!notificationsCount" class="notifications-menu" disabled icon="bell">
|
<ds-button v-if="!notificationsCount" class="notifications-menu" disabled icon="bell">
|
||||||
{{ unreadNotificationsCount }}
|
{{ unreadNotificationsCount }}
|
||||||
</ds-button>
|
</ds-button>
|
||||||
<dropdown v-else class="notifications-menu" :placement="placement">
|
<dropdown v-else class="notifications-menu" offset="8" :placement="placement">
|
||||||
<template slot="default" slot-scope="{ toggleMenu }">
|
<template slot="default" slot-scope="{ toggleMenu }">
|
||||||
<ds-button :primary="!!unreadNotificationsCount" icon="bell" @click.prevent="toggleMenu">
|
<ds-button :primary="!!unreadNotificationsCount" icon="bell" @click.prevent="toggleMenu">
|
||||||
{{ unreadNotificationsCount }}
|
{{ unreadNotificationsCount }}
|
||||||
</ds-button>
|
</ds-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
<ds-space centered>
|
|
||||||
<ds-button primary fullwidth :path="{ name: 'notifications' }">
|
|
||||||
{{ $t('notifications.pageLink') }}
|
|
||||||
</ds-button>
|
|
||||||
</ds-space>
|
|
||||||
<div class="notifications-menu-popover">
|
<div class="notifications-menu-popover">
|
||||||
<notification-list :notifications="displayedNotifications" @markAsRead="markAsRead" />
|
<notification-list :notifications="displayedNotifications" @markAsRead="markAsRead" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="notifications-link-container">
|
||||||
|
<nuxt-link :to="{ name: 'notifications' }">
|
||||||
|
{{ $t('notifications.pageLink') }}
|
||||||
|
</nuxt-link>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</dropdown>
|
</dropdown>
|
||||||
</template>
|
</template>
|
||||||
@ -121,14 +121,16 @@ export default {
|
|||||||
|
|
||||||
.notifications-menu-popover {
|
.notifications-menu-popover {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
|
margin-bottom: $size-height-base;
|
||||||
}
|
}
|
||||||
.link-bg {
|
.notifications-link-container {
|
||||||
position: sticky;
|
background-color: $background-color-softer-active;
|
||||||
width: 100%;
|
|
||||||
background-color: $background-color-primary-active;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
position: fixed;
|
||||||
.notifications-link {
|
bottom: 0;
|
||||||
color: $text-color-softer;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: $size-height-base;
|
||||||
|
padding: $space-x-small;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -71,7 +71,7 @@
|
|||||||
<notification-menu placement="top" />
|
<notification-menu placement="top" />
|
||||||
</client-only>
|
</client-only>
|
||||||
<client-only>
|
<client-only>
|
||||||
<avatar-menu placement="top" :user="user" />
|
<avatar-menu placement="top" />
|
||||||
</client-only>
|
</client-only>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -135,7 +135,7 @@ export default {
|
|||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
label: this.$t('notifications.user'),
|
label: this.$t('notifications.user'),
|
||||||
width: '350px',
|
width: '33.333%',
|
||||||
},
|
},
|
||||||
post: this.$t('notifications.post'),
|
post: this.$t('notifications.post'),
|
||||||
content: this.$t('notifications.content'),
|
content: this.$t('notifications.content'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user