From 75b5aaf88dbd49b5815c9b1e10c07b9a48f9cc3f Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Tue, 27 Dec 2022 12:06:19 -0500 Subject: [PATCH] fix: little scroll bug --- NUXT/pages/watch.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NUXT/pages/watch.vue b/NUXT/pages/watch.vue index 01211cd..63be806 100644 --- a/NUXT/pages/watch.vue +++ b/NUXT/pages/watch.vue @@ -486,6 +486,7 @@ export default { // Toggle this.showComments to true or false. If it is true, then add the dismiss function to backStack. toggleComment() { + document.getElementById("content-container").scrollTo(0, 0); this.showComments = !this.showComments; if (this.showComments) { const dismissComment = new backType( @@ -508,8 +509,8 @@ export default { left: 0; right: 0; bottom: 0; - z-index: 2; opacity: 0; + z-index: 2; height: 100%; max-height: 100%; position: absolute;