From 0d8d59dce5136ac4fdef4d8ea851cd4fd8f56162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e?= <tpoussard@neogeo.fr> Date: Fri, 1 Jul 2022 10:45:01 +0200 Subject: [PATCH] fix regression by id name changed for scroll to top at display message --- src/components/MessageInfo.vue | 1 - src/store/index.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/MessageInfo.vue b/src/components/MessageInfo.vue index 057ff755..3996dc9d 100644 --- a/src/components/MessageInfo.vue +++ b/src/components/MessageInfo.vue @@ -2,7 +2,6 @@ <transition name="fadeDownUp"> <div v-if="messages && messages.length > 0" - id="content" class="row over-content" > <div class="fourteen wide column"> diff --git a/src/store/index.js b/src/store/index.js index 3836a3d2..6def4d63 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -76,8 +76,8 @@ export default new Vuex.Store({ }, DISPLAY_MESSAGE(state, message) { state.messages = [message, ...state.messages]; - if (document.getElementById('content')) { - document.getElementById('content').scrollIntoView({ block: 'start', inline: 'nearest' }); + if (document.getElementById('app-content')) { + document.getElementById('app-content').scrollIntoView({ block: 'start', inline: 'nearest' }); } setTimeout(() => { state.messages = []; -- GitLab