feat: allow to scroll-to-top by clicking header title in account, list, and tag pages

This commit is contained in:
TAKAHASHI Shuuji 2024-02-28 23:12:03 +09:00
parent 6dc5a68c80
commit 9d405ed8d2
No known key found for this signature in database
GPG key ID: F15C887632129F5E
3 changed files with 12 additions and 3 deletions

View file

@ -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>

View file

@ -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" />

View file

@ -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>