add "scroll to top" button to timelines and notifications
This commit is contained in:
parent
2c76c46aa7
commit
efc6b6b703
4 changed files with 44 additions and 3 deletions
|
|
@ -6,6 +6,7 @@
|
|||
<div
|
||||
:class="{ minimal: minimalMode }"
|
||||
class="Notifications"
|
||||
ref="root"
|
||||
>
|
||||
<div :class="mainClass">
|
||||
<div
|
||||
|
|
@ -19,12 +20,21 @@
|
|||
class="badge badge-notification unseen-count"
|
||||
>{{ unseenCount }}</span>
|
||||
</div>
|
||||
<button
|
||||
v-if="showScrollTop"
|
||||
class="button-unstyled scroll-to-top-button"
|
||||
type="button"
|
||||
@click="scrollToTop"
|
||||
>
|
||||
<FAIcon icon="circle-up" />
|
||||
</button>
|
||||
<button
|
||||
v-if="unseenCount"
|
||||
class="button-default read-button"
|
||||
type="button"
|
||||
@click.prevent="markAsSeen"
|
||||
>
|
||||
{{ $t('notifications.read') }}
|
||||
<FAIcon icon="filter" />
|
||||
</button>
|
||||
<NotificationFilters />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue