mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
feat: allow to scroll-to-top by clicking header title in account, list, and tag pages
This commit is contained in:
parent
6dc5a68c80
commit
9d405ed8d2
3 changed files with 12 additions and 3 deletions
|
@ -24,10 +24,11 @@ onReactivated(() => {
|
|||
<MainContent back>
|
||||
<template #title>
|
||||
<ContentRich
|
||||
timeline-title-style
|
||||
timeline-title-style cursor-pointer
|
||||
:content="account ? getDisplayName(account) : t('nav.profile')"
|
||||
:show-emojis="!getPreferences(userSettings, 'hideUsernameEmojis')"
|
||||
:markdown="false"
|
||||
@click="$scrollToTop"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -50,7 +50,12 @@ onReactivated(() => {
|
|||
<template>
|
||||
<MainContent back>
|
||||
<template #title>
|
||||
<span text-lg font-bold>{{ listInfo ? listInfo.title : t('nav.list') }}</span>
|
||||
<span
|
||||
text-lg font-bold timeline-title-style cursor-pointer
|
||||
@click="$scrollToTop"
|
||||
>
|
||||
{{ listInfo ? listInfo.title : t('nav.list') }}
|
||||
</span>
|
||||
</template>
|
||||
<template #header>
|
||||
<CommonRouteTabs replace :options="tabs" />
|
||||
|
|
|
@ -28,7 +28,10 @@ onReactivated(() => {
|
|||
<template>
|
||||
<MainContent back>
|
||||
<template #title>
|
||||
<bdi text-lg font-bold>#{{ tagName }}</bdi>
|
||||
<bdi
|
||||
text-lg font-bold timeline-title-style cursor-pointer
|
||||
@click="$scrollToTop"
|
||||
>#{{ tagName }}</bdi>
|
||||
</template>
|
||||
|
||||
<template #actions>
|
||||
|
|
Loading…
Reference in a new issue