From 5dc0944fe893529130693c692e756e0536b58109 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Feb 2020 01:12:35 +0900 Subject: [PATCH] Resolve #5949 --- CHANGELOG.md | 5 +++++ src/client/app.vue | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3fc2dce3..d5ace6ac4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ ChangeLog ========= +unreleased +------------------- +### ✨Improvements +* タイムラインの一番上までスクロールできるように + 12.12.0 (2020/02/17) ------------------- ### ✨Improvements diff --git a/src/client/app.vue b/src/client/app.vue index ce92d81b1..9099b01c8 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -44,11 +44,8 @@
- - {{ $t('timeline') }} - - - {{ $t('home') }} + + {{ $store.getters.isSignedIn ? $t('timeline') : $t('home') }} - + @@ -321,6 +318,10 @@ export default Vue.extend({ setTimeout(adjust, 100); }, + top() { + window.scroll({ top: 0, behavior: 'smooth' }); + }, + help() { this.$router.push('/docs/keyboard-shortcut'); },