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

pull/2635/head
TAKAHASHI Shuuji 2024-02-28 23:12:03 +09:00
rodzic 6dc5a68c80
commit 9d405ed8d2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F15C887632129F5E
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -24,10 +24,11 @@ onReactivated(() => {
<MainContent back> <MainContent back>
<template #title> <template #title>
<ContentRich <ContentRich
timeline-title-style timeline-title-style cursor-pointer
:content="account ? getDisplayName(account) : t('nav.profile')" :content="account ? getDisplayName(account) : t('nav.profile')"
:show-emojis="!getPreferences(userSettings, 'hideUsernameEmojis')" :show-emojis="!getPreferences(userSettings, 'hideUsernameEmojis')"
:markdown="false" :markdown="false"
@click="$scrollToTop"
/> />
</template> </template>

Wyświetl plik

@ -50,7 +50,12 @@ onReactivated(() => {
<template> <template>
<MainContent back> <MainContent back>
<template #title> <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>
<template #header> <template #header>
<CommonRouteTabs replace :options="tabs" /> <CommonRouteTabs replace :options="tabs" />

Wyświetl plik

@ -28,7 +28,10 @@ onReactivated(() => {
<template> <template>
<MainContent back> <MainContent back>
<template #title> <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>
<template #actions> <template #actions>