From fd971f053feaaa5aee4f04587140a4520ff0a9b4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 9 Sep 2020 15:03:26 -0500 Subject: [PATCH] Scroll detailed status into view, fixes #257 --- app/soapbox/features/status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/status/index.js b/app/soapbox/features/status/index.js index d82f8c7a1..4f1fe6084 100644 --- a/app/soapbox/features/status/index.js +++ b/app/soapbox/features/status/index.js @@ -418,7 +418,7 @@ class Status extends ImmutablePureComponent { } if (prevProps.status && ancestorsIds && ancestorsIds.size > 0) { - const element = this.node.querySelectorAll('.focusable')[ancestorsIds.size - 1]; + const element = this.node.querySelector('.detailed-status'); window.requestAnimationFrame(() => { element.scrollIntoView(true);