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

Wyświetl plik

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

Wyświetl plik

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