sforkowany z mirror/soapbox
Merge branch 'scroll-status' into 'develop'
Scroll detailed status into view, fixes #257 Closes #257 See merge request soapbox-pub/soapbox-fe!223better-thread-display
commit
f1af5d6bfa
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue