feat: scroll to top (#237)

This commit is contained in:
Shinigami 2022-11-29 21:15:53 +01:00 committed by GitHub
parent cf225e2005
commit 0e7076b991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 48 additions and 15 deletions

View file

@ -13,7 +13,10 @@ useHead({
<template>
<MainContent>
<template #title>
<span text-lg font-bold>{{ t('title.federated_timeline') }}</span>
<NuxtLink to="/public" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<div i-ri:group-2-line />
<span>{{ t('title.federated_timeline') }}</span>
</NuxtLink>
</template>
<slot>

View file

@ -13,7 +13,10 @@ useHead({
<template>
<MainContent>
<template #title>
<span text-lg font-bold>{{ t('title.local_timeline') }}</span>
<NuxtLink to="/public/local" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<div i-ri:group-2-line />
<span>{{ t('title.local_timeline') }}</span>
</NuxtLink>
</template>
<slot>